| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Api.Query
Synopsis
- data QueryInMode result where
- QueryCurrentEra :: QueryInMode AnyCardanoEra
- QueryInEra :: forall era result1. QueryInEra era result1 -> QueryInMode (Either EraMismatch result1)
- QueryEraHistory :: QueryInMode EraHistory
- QuerySystemStart :: QueryInMode SystemStart
- QueryChainBlockNo :: QueryInMode (WithOrigin BlockNo)
- QueryChainPoint :: QueryInMode ChainPoint
- QueryLedgerConfig :: QueryInMode (HardForkLedgerConfig (CardanoEras StandardCrypto))
- data QueryInEra era result where
- QueryByronUpdateState :: QueryInEra ByronEra ByronUpdateState
- QueryInShelleyBasedEra :: forall era result. ShelleyBasedEra era -> QueryInShelleyBasedEra era result -> QueryInEra era result
- data QueryInShelleyBasedEra era result where
- QueryEpoch :: forall era. QueryInShelleyBasedEra era EpochNo
- QueryGenesisParameters :: forall era. QueryInShelleyBasedEra era (GenesisParameters ShelleyEra)
- QueryProtocolParameters :: forall era. QueryInShelleyBasedEra era (PParams (ShelleyLedgerEra era))
- QueryStakeDistribution :: forall era. QueryInShelleyBasedEra era (Map (Hash StakePoolKey) Rational)
- QueryUTxO :: forall era. QueryUTxOFilter -> QueryInShelleyBasedEra era (UTxO era)
- QueryStakeAddresses :: forall era. Set StakeCredential -> NetworkId -> QueryInShelleyBasedEra era (Map StakeAddress Coin, Map StakeAddress PoolId)
- QueryStakePools :: forall era. QueryInShelleyBasedEra era (Set PoolId)
- QueryStakePoolParameters :: forall era. Set PoolId -> QueryInShelleyBasedEra era (Map PoolId StakePoolParameters)
- QueryDebugLedgerState :: forall era. QueryInShelleyBasedEra era (SerialisedDebugLedgerState era)
- QueryProtocolState :: forall era. QueryInShelleyBasedEra era (ProtocolState era)
- QueryCurrentEpochState :: forall era. QueryInShelleyBasedEra era (SerialisedCurrentEpochState era)
- QueryPoolState :: forall era. Maybe (Set PoolId) -> QueryInShelleyBasedEra era SerialisedPoolState
- QueryPoolDistribution :: forall era. Maybe (Set PoolId) -> QueryInShelleyBasedEra era (Serialised (PoolDistribution era))
- QueryStakeSnapshot :: forall era. Maybe (Set PoolId) -> QueryInShelleyBasedEra era (SerialisedStakeSnapshots era)
- QueryStakeDelegDeposits :: forall era. Set StakeCredential -> QueryInShelleyBasedEra era (Map StakeCredential Coin)
- QueryAccountState :: forall era. QueryInShelleyBasedEra era ChainAccountState
- QueryConstitution :: forall era. QueryInShelleyBasedEra era (Constitution (ShelleyLedgerEra era))
- QueryGovState :: forall era. QueryInShelleyBasedEra era (GovState (ShelleyLedgerEra era))
- QueryRatifyState :: forall era. QueryInShelleyBasedEra era (RatifyState (ShelleyLedgerEra era))
- QueryFuturePParams :: forall era. QueryInShelleyBasedEra era (Maybe (PParams (ShelleyLedgerEra era)))
- QueryDRepState :: forall era. Set (Credential 'DRepRole) -> QueryInShelleyBasedEra era (Map (Credential 'DRepRole) DRepState)
- QueryDRepStakeDistr :: forall era. Set DRep -> QueryInShelleyBasedEra era (Map DRep Coin)
- QuerySPOStakeDistr :: forall era. Set (KeyHash 'StakePool) -> QueryInShelleyBasedEra era (Map (KeyHash 'StakePool) Coin)
- QueryCommitteeMembersState :: forall era. Set (Credential 'ColdCommitteeRole) -> Set (Credential 'HotCommitteeRole) -> Set MemberStatus -> QueryInShelleyBasedEra era CommitteeMembersState
- QueryStakeVoteDelegatees :: forall era. Set StakeCredential -> QueryInShelleyBasedEra era (Map StakeCredential DRep)
- QueryProposals :: forall era. Set GovActionId -> QueryInShelleyBasedEra era (Seq (GovActionState (ShelleyLedgerEra era)))
- QueryLedgerPeerSnapshot :: forall (ledgerPeersKind :: LedgerPeersKind) era. SingLedgerPeersKind ledgerPeersKind -> QueryInShelleyBasedEra era (LedgerPeerSnapshot ledgerPeersKind)
- QueryStakePoolDefaultVote :: forall era. KeyHash 'StakePool -> QueryInShelleyBasedEra era DefaultVote
- GetDRepDelegations :: forall era. Set DRep -> QueryInShelleyBasedEra era (Map DRep (Set (Credential 'Staking)))
- data QueryUTxOFilter
- data UTxOInAnyEra where
- UTxOInAnyEra :: forall era. CardanoEra era -> UTxO era -> UTxOInAnyEra
- toConsensusQuery :: CardanoBlock StandardCrypto ~ block => QueryInMode result -> Some (Query block)
- fromConsensusQueryResult :: (HasCallStack, CardanoBlock StandardCrypto ~ block) => QueryInMode result -> Query block result' -> result' -> result
- newtype SerialisedDebugLedgerState era = SerialisedDebugLedgerState (Serialised (NewEpochState (ShelleyLedgerEra era)))
- newtype ProtocolState era = ProtocolState (Serialised (ChainDepState (ConsensusProtocol era)))
- decodeProtocolState :: FromCBOR (ChainDepState (ConsensusProtocol era)) => ProtocolState era -> Either (ByteString, DecoderError) (ChainDepState (ConsensusProtocol era))
- newtype DebugLedgerState era = DebugLedgerState {}
- decodeDebugLedgerState :: FromCBOR (DebugLedgerState era) => SerialisedDebugLedgerState era -> Either (ByteString, DecoderError) (DebugLedgerState era)
- newtype SerialisedCurrentEpochState era = SerialisedCurrentEpochState (Serialised (EpochState (ShelleyLedgerEra era)))
- newtype CurrentEpochState era = CurrentEpochState (EpochState (ShelleyLedgerEra era))
- decodeCurrentEpochState :: ShelleyBasedEra era -> SerialisedCurrentEpochState era -> Either DecoderError (CurrentEpochState era)
- newtype SerialisedPoolState = SerialisedPoolState (Serialised QueryPoolStateResult)
- newtype PoolState era = PoolState QueryPoolStateResult
- decodePoolState :: ShelleyBasedEra era -> SerialisedPoolState -> Either DecoderError (PoolState era)
- newtype PoolDistribution era = PoolDistribution {}
- decodePoolDistribution :: ShelleyBasedEra era -> Serialised (PoolDistribution era) -> Either DecoderError (PoolDistribution era)
- newtype SerialisedStakeSnapshots era = SerialisedStakeSnapshots (Serialised StakeSnapshots)
- newtype StakeSnapshot era = StakeSnapshot StakeSnapshots
- decodeStakeSnapshot :: ShelleyBasedEra era -> SerialisedStakeSnapshots era -> Either DecoderError (StakeSnapshot era)
- data EraHistory where
- EraHistory :: forall (xs :: [Type]). CardanoBlock StandardCrypto ~ HardForkBlock xs => Interpreter xs -> EraHistory
- newtype SystemStart = SystemStart {}
- newtype LedgerEpochInfo = LedgerEpochInfo {}
- toLedgerEpochInfo :: EraHistory -> LedgerEpochInfo
- newtype SlotsInEpoch = SlotsInEpoch Word64
- newtype SlotsToEpochEnd = SlotsToEpochEnd Word64
- slotToEpoch :: SlotNo -> EraHistory -> Either PastHorizonException (EpochNo, SlotsInEpoch, SlotsToEpochEnd)
- data family LedgerState blk (mk :: MapKind)
- getProgress :: SlotNo -> EraHistory -> Either PastHorizonException (RelativeTime, SlotLength)
- getSlotForRelativeTime :: RelativeTime -> EraHistory -> Either PastHorizonException SlotNo
- slotToUTCTime :: SystemStart -> EraHistory -> SlotNo -> Either PastHorizonException UTCTime
- decodeLedgerPeerSnapshot :: forall (ledgerPeersKind :: LedgerPeersKind). SingLedgerPeersKind ledgerPeersKind -> ShelleyNodeToClientVersion -> Serialised (LedgerPeerSnapshot ledgerPeersKind) -> Either (ByteString, DecoderError) (LedgerPeerSnapshot ledgerPeersKind)
- data QueryConvenienceError
- newtype TxCurrentTreasuryValue = TxCurrentTreasuryValue {}
- determineEra :: LocalNodeConnectInfo -> ExceptT AcquiringFailure IO AnyCardanoEra
- executeQueryCardanoMode :: SocketPath -> NetworkId -> QueryInMode (Either EraMismatch result) -> ExceptT QueryConvenienceError IO result
- executeQueryAnyMode :: LocalNodeConnectInfo -> QueryInMode (Either EraMismatch result) -> ExceptT QueryConvenienceError IO result
- queryStateForBalancedTx :: CardanoEra era -> [TxIn] -> [Certificate (ShelleyLedgerEra era)] -> LocalStateQueryExpr block point QueryInMode r IO (Either QueryConvenienceError (UTxO era, LedgerProtocolParameters era, EraHistory, SystemStart, Set PoolId, Map StakeCredential Coin, Map (Credential 'DRepRole) (CompactForm Coin), Maybe (Featured ConwayEraOnwards era TxCurrentTreasuryValue)))
- renderQueryConvenienceError :: QueryConvenienceError -> Text
- queryAccountState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch ChainAccountState))
- queryChainBlockNo :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (WithOrigin BlockNo))
- queryChainPoint :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError ChainPoint)
- queryConstitution :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Constitution (ShelleyLedgerEra era))))
- queryCurrentEpochState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedCurrentEpochState era)))
- queryCurrentEra :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError AnyCardanoEra)
- queryDebugLedgerState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedDebugLedgerState era)))
- queryEpoch :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch EpochNo))
- queryConstitutionHash :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SafeHash AnchorData)))
- queryEraHistory :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError EraHistory)
- queryGenesisParameters :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (GenesisParameters ShelleyEra)))
- queryPoolDistribution :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Serialised (PoolDistribution era))))
- queryPoolState :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch SerialisedPoolState))
- queryProtocolParameters :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (PParams (ShelleyLedgerEra era))))
- queryProtocolState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (ProtocolState era)))
- queryStakeAddresses :: ShelleyBasedEra era -> Set StakeCredential -> NetworkId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeAddress Coin, Map StakeAddress PoolId)))
- queryStakeDelegDeposits :: BabbageEraOnwards era -> Set StakeCredential -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeCredential Coin)))
- queryStakeDistribution :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (Hash StakePoolKey) Rational)))
- queryStakePoolParameters :: ShelleyBasedEra era -> Set PoolId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map PoolId StakePoolParameters)))
- queryStakePools :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Set PoolId)))
- queryStakeSnapshot :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedStakeSnapshots era)))
- querySystemStart :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError SystemStart)
- queryUtxo :: ShelleyBasedEra era -> QueryUTxOFilter -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (UTxO era)))
- queryLedgerPeerSnapshot :: forall era (ledgerPeersKind :: LedgerPeersKind) block point r. ShelleyBasedEra era -> SingLedgerPeersKind ledgerPeersKind -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (LedgerPeerSnapshot ledgerPeersKind)))
- data MemberStatus
- data CommitteeMembersState = CommitteeMembersState {}
- queryCommitteeMembersState :: ConwayEraOnwards era -> Set (Credential 'ColdCommitteeRole) -> Set (Credential 'HotCommitteeRole) -> Set MemberStatus -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch CommitteeMembersState))
- queryDRepStakeDistribution :: ConwayEraOnwards era -> Set DRep -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map DRep Coin)))
- querySPOStakeDistribution :: ConwayEraOnwards era -> Set (KeyHash 'StakePool) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (KeyHash 'StakePool) Coin)))
- queryDRepState :: ConwayEraOnwards era -> Set (Credential 'DRepRole) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (Credential 'DRepRole) DRepState)))
- queryGovState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (GovState (ShelleyLedgerEra era))))
- queryRatifyState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (RatifyState (ShelleyLedgerEra era))))
- queryFuturePParams :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Maybe (PParams (ShelleyLedgerEra era)))))
- queryStakeVoteDelegatees :: ConwayEraOnwards era -> Set StakeCredential -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeCredential DRep)))
- queryProposals :: ConwayEraOnwards era -> Set GovActionId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Seq (GovActionState (ShelleyLedgerEra era)))))
- queryStakePoolDefaultVote :: ConwayEraOnwards era -> KeyHash 'StakePool -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch DefaultVote))
- queryLedgerConfig :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (CardanoLedgerConfig StandardCrypto))
- newtype DelegationsAndRewards = DelegationsAndRewards (Map StakeAddress Coin, Map StakeAddress PoolId)
- mergeDelegsAndRewards :: DelegationsAndRewards -> [(StakeAddress, Maybe Coin, Maybe PoolId)]
- toDebugLedgerStatePair :: KeyValue e a => ShelleyBasedEra era -> DebugLedgerState era -> [a]
- toLedgerUTxO :: ShelleyBasedEra era -> UTxO era -> UTxO (ShelleyLedgerEra era)
- fromLedgerUTxO :: ShelleyBasedEra era -> UTxO (ShelleyLedgerEra era) -> UTxO era
Queries
data QueryInMode result where Source #
Constructors
| QueryCurrentEra :: QueryInMode AnyCardanoEra | |
| QueryInEra :: forall era result1. QueryInEra era result1 -> QueryInMode (Either EraMismatch result1) | |
| QueryEraHistory :: QueryInMode EraHistory | |
| QuerySystemStart :: QueryInMode SystemStart | |
| QueryChainBlockNo :: QueryInMode (WithOrigin BlockNo) | |
| QueryChainPoint :: QueryInMode ChainPoint | |
| QueryLedgerConfig :: QueryInMode (HardForkLedgerConfig (CardanoEras StandardCrypto)) |
Instances
| Show (QueryInMode result) Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
data QueryInEra era result where Source #
Constructors
| QueryByronUpdateState :: QueryInEra ByronEra ByronUpdateState | |
| QueryInShelleyBasedEra :: forall era result. ShelleyBasedEra era -> QueryInShelleyBasedEra era result -> QueryInEra era result |
Instances
| Show (QueryInEra era result) Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
data QueryInShelleyBasedEra era result where Source #
Constructors
Instances
| Show (QueryInShelleyBasedEra era result) Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
data QueryUTxOFilter Source #
Getting the whole UTxO is obviously not efficient since the result can be huge. Filtering by address is also not efficient because it requires a linear search.
The QueryUTxOFilterByTxIn is efficient since it fits with the structure of
the UTxO (which is indexed by TxIn).
Constructors
| QueryUTxOWhole | O(n) time and space for utxo size n |
| QueryUTxOByAddress (Set AddressAny) | O(n) time, O(m) space for utxo size n, and address set size m |
| QueryUTxOByTxIn (Set TxIn) | O(m log n) time, O(m) space for utxo size n, and address set size m |
Instances
| Eq QueryUTxOFilter Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode Methods (==) :: QueryUTxOFilter -> QueryUTxOFilter -> Bool Source # (/=) :: QueryUTxOFilter -> QueryUTxOFilter -> Bool Source # | |
| Show QueryUTxOFilter Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
data UTxOInAnyEra where Source #
Constructors
| UTxOInAnyEra :: forall era. CardanoEra era -> UTxO era -> UTxOInAnyEra |
Instances
Internal conversion functions
toConsensusQuery :: CardanoBlock StandardCrypto ~ block => QueryInMode result -> Some (Query block) Source #
fromConsensusQueryResult :: (HasCallStack, CardanoBlock StandardCrypto ~ block) => QueryInMode result -> Query block result' -> result' -> result Source #
Wrapper types used in queries
newtype SerialisedDebugLedgerState era Source #
Constructors
| SerialisedDebugLedgerState (Serialised (NewEpochState (ShelleyLedgerEra era))) |
newtype ProtocolState era Source #
Constructors
| ProtocolState (Serialised (ChainDepState (ConsensusProtocol era))) |
decodeProtocolState :: FromCBOR (ChainDepState (ConsensusProtocol era)) => ProtocolState era -> Either (ByteString, DecoderError) (ChainDepState (ConsensusProtocol era)) Source #
newtype DebugLedgerState era Source #
Constructors
| DebugLedgerState | |
Fields | |
Instances
| IsShelleyBasedEra era => ToJSON (DebugLedgerState era) Source # | |
Defined in Cardano.Api.Query.Internal.Type.DebugLedgerState Methods toJSON :: DebugLedgerState era -> Value # toEncoding :: DebugLedgerState era -> Encoding # toJSONList :: [DebugLedgerState era] -> Value # toEncodingList :: [DebugLedgerState era] -> Encoding # omitField :: DebugLedgerState era -> Bool # | |
| IsShelleyBasedEra era => FromCBOR (DebugLedgerState era) Source # | |
decodeDebugLedgerState :: FromCBOR (DebugLedgerState era) => SerialisedDebugLedgerState era -> Either (ByteString, DecoderError) (DebugLedgerState era) Source #
newtype SerialisedCurrentEpochState era Source #
Constructors
| SerialisedCurrentEpochState (Serialised (EpochState (ShelleyLedgerEra era))) |
newtype CurrentEpochState era Source #
Constructors
| CurrentEpochState (EpochState (ShelleyLedgerEra era)) |
decodeCurrentEpochState :: ShelleyBasedEra era -> SerialisedCurrentEpochState era -> Either DecoderError (CurrentEpochState era) Source #
newtype SerialisedPoolState Source #
Constructors
| SerialisedPoolState (Serialised QueryPoolStateResult) |
newtype PoolState era Source #
Constructors
| PoolState QueryPoolStateResult |
decodePoolState :: ShelleyBasedEra era -> SerialisedPoolState -> Either DecoderError (PoolState era) Source #
newtype PoolDistribution era Source #
Constructors
| PoolDistribution | |
Fields | |
decodePoolDistribution :: ShelleyBasedEra era -> Serialised (PoolDistribution era) -> Either DecoderError (PoolDistribution era) Source #
newtype SerialisedStakeSnapshots era Source #
Constructors
| SerialisedStakeSnapshots (Serialised StakeSnapshots) |
newtype StakeSnapshot era Source #
Constructors
| StakeSnapshot StakeSnapshots |
Instances
| Typeable era => DecCBOR (StakeSnapshot era) Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |
| EncCBOR (StakeSnapshot era) Source # | |
Defined in Cardano.Api.Query.Internal.Type.QueryInMode Methods encCBOR :: StakeSnapshot era -> Encoding Source # | |
decodeStakeSnapshot :: ShelleyBasedEra era -> SerialisedStakeSnapshots era -> Either DecoderError (StakeSnapshot era) Source #
data EraHistory where Source #
Constructors
| EraHistory :: forall (xs :: [Type]). CardanoBlock StandardCrypto ~ HardForkBlock xs => Interpreter xs -> EraHistory |
Instances
| HasTypeProxy EraHistory Source # | |||||
Defined in Cardano.Api.Query.Internal.Type.QueryInMode Associated Types
Methods proxyToAsType :: Proxy EraHistory -> AsType EraHistory Source # | |||||
| SerialiseAsCBOR EraHistory Source # | |||||
Defined in Cardano.Api.Query.Internal.Type.QueryInMode Methods serialiseToCBOR :: EraHistory -> ByteString Source # deserialiseFromCBOR :: AsType EraHistory -> ByteString -> Either DecoderError EraHistory Source # | |||||
| HasTextEnvelope EraHistory Source # | The | ||||
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |||||
| data AsType EraHistory Source # | |||||
Defined in Cardano.Api.Query.Internal.Type.QueryInMode | |||||
newtype SystemStart Source #
System start
Slots are counted from the system start.
Constructors
| SystemStart | |
Fields | |
Instances
newtype LedgerEpochInfo Source #
Constructors
| LedgerEpochInfo | |
Fields | |
newtype SlotsInEpoch Source #
Constructors
| SlotsInEpoch Word64 |
newtype SlotsToEpochEnd Source #
Constructors
| SlotsToEpochEnd Word64 |
slotToEpoch :: SlotNo -> EraHistory -> Either PastHorizonException (EpochNo, SlotsInEpoch, SlotsToEpochEnd) Source #
data family LedgerState blk (mk :: MapKind) Source #
Ledger state associated with a block
This is the Consensus notion of a Ledger ledger state. Each block type is
associated with one of the Ledger types for the ledger state. Virtually
every concept in this codebase revolves around this type, or the referenced
blk. Whenever we use the type variable l we intend to signal that the
expected instantiation is either a LedgerState or some wrapper over it
(like the ExtLedgerState).
This type is parametrized over mk :: to express the
MapKindLedgerTables contained in such a LedgerState. See LedgerTables for a
more thorough description.
The main operations we can do with a LedgerState are ticking (defined in
IsLedger), and applying a block (defined in
ApplyBlock).
Instances
| DecodeDisk ByronBlock (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s (LedgerState ByronBlock mk) Source # | |||||||||
| EncodeDisk ByronBlock (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Node.Serialisation Methods encodeDisk :: CodecConfig ByronBlock -> LedgerState ByronBlock mk -> Encoding Source # | |||||||||
| (ShelleyBasedEra era, ShelleyBasedEra (PreviousEra era), TranslateEra era (ShelleyTip proto), TranslateEra era NewEpochState, TranslationError era NewEpochState ~ Void, CanMapMK mk, CanMapKeysMK mk) => TranslateEra era (Flip LedgerState mk :.: ShelleyBlock proto) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC Associated Types
Methods translateEra :: TranslationContext era -> (Flip LedgerState mk :.: ShelleyBlock proto) (PreviousEra era) -> Except (TranslationError era (Flip LedgerState mk :.: ShelleyBlock proto)) ((Flip LedgerState mk :.: ShelleyBlock proto) era) Source # | |||||||||
| CanHardFork xs => GetTip (LedgerState (HardForkBlock xs)) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods getTip :: forall (mk :: MapKind). LedgerState (HardForkBlock xs) mk -> Point (LedgerState (HardForkBlock xs)) Source # | |||||||||
| Bridge m a => GetTip (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods getTip :: forall (mk :: MapKind). LedgerState (DualBlock m a) mk -> Point (LedgerState (DualBlock m a)) Source # | |||||||||
| GetTip (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). LedgerState ByronBlock mk -> Point (LedgerState ByronBlock) Source # | |||||||||
| GetTip (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). LedgerState (ShelleyBlock proto era) mk -> Point (LedgerState (ShelleyBlock proto era)) Source # | |||||||||
| CanHardFork xs => IsLedger (LedgerState (HardForkBlock xs)) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Associated Types
Methods applyChainTickLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (HardForkBlock xs)) -> SlotNo -> LedgerState (HardForkBlock xs) EmptyMK -> LedgerResult (LedgerState (HardForkBlock xs)) (Ticked (LedgerState (HardForkBlock xs)) DiffMK) Source # | |||||||||
| Bridge m a => IsLedger (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Associated Types
Methods applyChainTickLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (DualBlock m a)) -> SlotNo -> LedgerState (DualBlock m a) EmptyMK -> LedgerResult (LedgerState (DualBlock m a)) (Ticked (LedgerState (DualBlock m a)) DiffMK) Source # | |||||||||
| IsLedger (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods applyChainTickLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> SlotNo -> LedgerState ByronBlock EmptyMK -> LedgerResult (LedgerState ByronBlock) (Ticked (LedgerState ByronBlock) DiffMK) Source # | |||||||||
| ShelleyBasedEra era => IsLedger (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Associated Types
Methods applyChainTickLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (ShelleyBlock proto era)) -> SlotNo -> LedgerState (ShelleyBlock proto era) EmptyMK -> LedgerResult (LedgerState (ShelleyBlock proto era)) (Ticked (LedgerState (ShelleyBlock proto era)) DiffMK) Source # | |||||||||
| All (Compose CanStowLedgerTables LedgerState) xs => CanStowLedgerTables (LedgerState (HardForkBlock xs)) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods stowLedgerTables :: LedgerState (HardForkBlock xs) ValuesMK -> LedgerState (HardForkBlock xs) EmptyMK Source # unstowLedgerTables :: LedgerState (HardForkBlock xs) EmptyMK -> LedgerState (HardForkBlock xs) ValuesMK Source # | |||||||||
| CanStowLedgerTables (LedgerState m) => CanStowLedgerTables (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods stowLedgerTables :: LedgerState (DualBlock m a) ValuesMK -> LedgerState (DualBlock m a) EmptyMK Source # unstowLedgerTables :: LedgerState (DualBlock m a) EmptyMK -> LedgerState (DualBlock m a) ValuesMK Source # | |||||||||
| CanStowLedgerTables (LedgerState ByronBlock) # | |||||||||
| ShelleyBasedEra era => CanStowLedgerTables (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods stowLedgerTables :: LedgerState (ShelleyBlock proto era) ValuesMK -> LedgerState (ShelleyBlock proto era) EmptyMK Source # unstowLedgerTables :: LedgerState (ShelleyBlock proto era) EmptyMK -> LedgerState (ShelleyBlock proto era) ValuesMK Source # | |||||||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) => HasLedgerTables (LedgerState (HardForkBlock xs)) Source # | Warning: | ||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (HardForkBlock xs) mk -> LedgerTables (LedgerState (HardForkBlock xs)) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (HardForkBlock xs) any -> LedgerTables (LedgerState (HardForkBlock xs)) mk -> LedgerState (HardForkBlock xs) mk Source # | |||||||||
| (Bridge m a, NoThunks (TxOut (LedgerState m)), NoThunks (TxIn (LedgerState m)), Show (TxOut (LedgerState m)), Show (TxIn (LedgerState m)), Eq (TxOut (LedgerState m)), Ord (TxIn (LedgerState m)), MemPack (TxIn (LedgerState m))) => HasLedgerTables (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (DualBlock m a) mk -> LedgerTables (LedgerState (DualBlock m a)) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (DualBlock m a) any -> LedgerTables (LedgerState (DualBlock m a)) mk -> LedgerState (DualBlock m a) mk Source # | |||||||||
| HasLedgerTables (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState ByronBlock mk -> LedgerTables (LedgerState ByronBlock) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState ByronBlock any -> LedgerTables (LedgerState ByronBlock) mk -> LedgerState ByronBlock mk Source # | |||||||||
| ShelleyBasedEra era => HasLedgerTables (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (ShelleyBlock proto era) mk -> LedgerTables (LedgerState (ShelleyBlock proto era)) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => LedgerState (ShelleyBlock proto era) any -> LedgerTables (LedgerState (ShelleyBlock proto era)) mk -> LedgerState (ShelleyBlock proto era) mk Source # | |||||||||
| LedgerTablesAreTrivial (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods convertMapKind :: forall (mk :: MapKind) (mk' :: MapKind). LedgerState ByronBlock mk -> LedgerState ByronBlock mk' Source # | |||||||||
| CardanoHardForkConstraints c => SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) -> LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) -> Decoder s (LedgerTables (LedgerState (HardForkBlock (CardanoEras c))) ValuesMK) Source # | |||||||||
| SerializeTablesWithHint (LedgerState (HardForkBlock '[ByronBlock])) # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) -> LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) -> Decoder s (LedgerTables (LedgerState (HardForkBlock '[ByronBlock])) ValuesMK) Source # | |||||||||
| ShelleyCompatible proto era => SerializeTablesWithHint (LedgerState (HardForkBlock '[ShelleyBlock proto era])) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ShelleyBlock proto era])) ValuesMK) -> LedgerTables (LedgerState (HardForkBlock '[ShelleyBlock proto era])) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (HardForkBlock '[ShelleyBlock proto era])) ValuesMK) -> Decoder s (LedgerTables (LedgerState (HardForkBlock '[ShelleyBlock proto era])) ValuesMK) Source # | |||||||||
| (Ord (TxIn (LedgerState m)), MemPack (TxIn (LedgerState m)), MemPack (TxOut (LedgerState m))) => SerializeTablesWithHint (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (DualBlock m a)) ValuesMK) -> LedgerTables (LedgerState (DualBlock m a)) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (DualBlock m a)) ValuesMK) -> Decoder s (LedgerTables (LedgerState (DualBlock m a)) ValuesMK) Source # | |||||||||
| SerializeTablesWithHint (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState ByronBlock) ValuesMK) -> LedgerTables (LedgerState ByronBlock) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState ByronBlock) ValuesMK) -> Decoder s (LedgerTables (LedgerState ByronBlock) ValuesMK) Source # | |||||||||
| ShelleyCompatible proto era => SerializeTablesWithHint (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods encodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK) -> LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK -> Encoding Source # decodeTablesWithHint :: SerializeTablesHint (LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK) -> Decoder s (LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK) Source # | |||||||||
| (CanHardFork xs, HasHardForkTxOut xs) => CanUpgradeLedgerTables (LedgerState (HardForkBlock xs)) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods upgradeTables :: forall (mk1 :: MapKind) (mk2 :: MapKind). LedgerState (HardForkBlock xs) mk1 -> LedgerState (HardForkBlock xs) mk2 -> LedgerTables (LedgerState (HardForkBlock xs)) ValuesMK -> LedgerTables (LedgerState (HardForkBlock xs)) ValuesMK Source # | |||||||||
| CanUpgradeLedgerTables (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods upgradeTables :: forall (mk1 :: MapKind) (mk2 :: MapKind). LedgerState (DualBlock m a) mk1 -> LedgerState (DualBlock m a) mk2 -> LedgerTables (LedgerState (DualBlock m a)) ValuesMK -> LedgerTables (LedgerState (DualBlock m a)) ValuesMK Source # | |||||||||
| CanUpgradeLedgerTables (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods upgradeTables :: forall (mk1 :: MapKind) (mk2 :: MapKind). LedgerState ByronBlock mk1 -> LedgerState ByronBlock mk2 -> LedgerTables (LedgerState ByronBlock) ValuesMK -> LedgerTables (LedgerState ByronBlock) ValuesMK Source # | |||||||||
| CanUpgradeLedgerTables (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods upgradeTables :: forall (mk1 :: MapKind) (mk2 :: MapKind). LedgerState (ShelleyBlock proto era) mk1 -> LedgerState (ShelleyBlock proto era) mk2 -> LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK -> LedgerTables (LedgerState (ShelleyBlock proto era)) ValuesMK Source # | |||||||||
| ApplyBlock (LedgerState ByronBlock) ByronBlock # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods applyBlockLedgerResultWithValidation :: ValidationPolicy -> ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> Except (LedgerErr (LedgerState ByronBlock)) (LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK)) Source # applyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> Except (LedgerErr (LedgerState ByronBlock)) (LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK)) Source # reapplyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState ByronBlock) -> ByronBlock -> Ticked (LedgerState ByronBlock) ValuesMK -> LedgerResult (LedgerState ByronBlock) (LedgerState ByronBlock DiffMK) Source # getBlockKeySets :: ByronBlock -> LedgerTables (LedgerState ByronBlock) KeysMK Source # | |||||||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) => ApplyBlock (LedgerState (HardForkBlock xs)) (HardForkBlock xs) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods applyBlockLedgerResultWithValidation :: ValidationPolicy -> ComputeLedgerEvents -> LedgerCfg (LedgerState (HardForkBlock xs)) -> HardForkBlock xs -> Ticked (LedgerState (HardForkBlock xs)) ValuesMK -> Except (LedgerErr (LedgerState (HardForkBlock xs))) (LedgerResult (LedgerState (HardForkBlock xs)) (LedgerState (HardForkBlock xs) DiffMK)) Source # applyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (HardForkBlock xs)) -> HardForkBlock xs -> Ticked (LedgerState (HardForkBlock xs)) ValuesMK -> Except (LedgerErr (LedgerState (HardForkBlock xs))) (LedgerResult (LedgerState (HardForkBlock xs)) (LedgerState (HardForkBlock xs) DiffMK)) Source # reapplyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (HardForkBlock xs)) -> HardForkBlock xs -> Ticked (LedgerState (HardForkBlock xs)) ValuesMK -> LedgerResult (LedgerState (HardForkBlock xs)) (LedgerState (HardForkBlock xs) DiffMK) Source # getBlockKeySets :: HardForkBlock xs -> LedgerTables (LedgerState (HardForkBlock xs)) KeysMK Source # | |||||||||
| Bridge m a => ApplyBlock (LedgerState (DualBlock m a)) (DualBlock m a) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods applyBlockLedgerResultWithValidation :: ValidationPolicy -> ComputeLedgerEvents -> LedgerCfg (LedgerState (DualBlock m a)) -> DualBlock m a -> Ticked (LedgerState (DualBlock m a)) ValuesMK -> Except (LedgerErr (LedgerState (DualBlock m a))) (LedgerResult (LedgerState (DualBlock m a)) (LedgerState (DualBlock m a) DiffMK)) Source # applyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (DualBlock m a)) -> DualBlock m a -> Ticked (LedgerState (DualBlock m a)) ValuesMK -> Except (LedgerErr (LedgerState (DualBlock m a))) (LedgerResult (LedgerState (DualBlock m a)) (LedgerState (DualBlock m a) DiffMK)) Source # reapplyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (DualBlock m a)) -> DualBlock m a -> Ticked (LedgerState (DualBlock m a)) ValuesMK -> LedgerResult (LedgerState (DualBlock m a)) (LedgerState (DualBlock m a) DiffMK) Source # getBlockKeySets :: DualBlock m a -> LedgerTables (LedgerState (DualBlock m a)) KeysMK Source # | |||||||||
| ShelleyCompatible proto era => ApplyBlock (LedgerState (ShelleyBlock proto era)) (ShelleyBlock proto era) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods applyBlockLedgerResultWithValidation :: ValidationPolicy -> ComputeLedgerEvents -> LedgerCfg (LedgerState (ShelleyBlock proto era)) -> ShelleyBlock proto era -> Ticked (LedgerState (ShelleyBlock proto era)) ValuesMK -> Except (LedgerErr (LedgerState (ShelleyBlock proto era))) (LedgerResult (LedgerState (ShelleyBlock proto era)) (LedgerState (ShelleyBlock proto era) DiffMK)) Source # applyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (ShelleyBlock proto era)) -> ShelleyBlock proto era -> Ticked (LedgerState (ShelleyBlock proto era)) ValuesMK -> Except (LedgerErr (LedgerState (ShelleyBlock proto era))) (LedgerResult (LedgerState (ShelleyBlock proto era)) (LedgerState (ShelleyBlock proto era) DiffMK)) Source # reapplyBlockLedgerResult :: ComputeLedgerEvents -> LedgerCfg (LedgerState (ShelleyBlock proto era)) -> ShelleyBlock proto era -> Ticked (LedgerState (ShelleyBlock proto era)) ValuesMK -> LedgerResult (LedgerState (ShelleyBlock proto era)) (LedgerState (ShelleyBlock proto era) DiffMK) Source # getBlockKeySets :: ShelleyBlock proto era -> LedgerTables (LedgerState (ShelleyBlock proto era)) KeysMK Source # | |||||||||
| SerialiseHFC xs => DecodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk Methods decodeDisk :: CodecConfig (HardForkBlock xs) -> forall s. Decoder s (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||||||
| SerialiseHFC xs => EncodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk Methods encodeDisk :: CodecConfig (HardForkBlock xs) -> LedgerState (HardForkBlock xs) EmptyMK -> Encoding Source # | |||||||||
| (EqMK mk, CanHardFork xs) => Eq (LedgerState (HardForkBlock xs) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods (==) :: LedgerState (HardForkBlock xs) mk -> LedgerState (HardForkBlock xs) mk -> Bool Source # (/=) :: LedgerState (HardForkBlock xs) mk -> LedgerState (HardForkBlock xs) mk -> Bool Source # | |||||||||
| (Bridge m a, EqMK mk) => Eq (LedgerState (DualBlock m a) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods (==) :: LedgerState (DualBlock m a) mk -> LedgerState (DualBlock m a) mk -> Bool Source # (/=) :: LedgerState (DualBlock m a) mk -> LedgerState (DualBlock m a) mk -> Bool Source # | |||||||||
| Eq (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods (==) :: LedgerState ByronBlock mk -> LedgerState ByronBlock mk -> Bool Source # (/=) :: LedgerState ByronBlock mk -> LedgerState ByronBlock mk -> Bool Source # | |||||||||
| (ShelleyBasedEra era, EqMK mk) => Eq (LedgerState (ShelleyBlock proto era) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods (==) :: LedgerState (ShelleyBlock proto era) mk -> LedgerState (ShelleyBlock proto era) mk -> Bool Source # (/=) :: LedgerState (ShelleyBlock proto era) mk -> LedgerState (ShelleyBlock proto era) mk -> Bool Source # | |||||||||
| Generic (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods from :: LedgerState ByronBlock mk -> Rep (LedgerState ByronBlock mk) x Source # to :: Rep (LedgerState ByronBlock mk) x -> LedgerState ByronBlock mk Source # | |||||||||
| Generic (LedgerState (ShelleyBlock proto era) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Associated Types
Methods from :: LedgerState (ShelleyBlock proto era) mk -> Rep (LedgerState (ShelleyBlock proto era) mk) x Source # to :: Rep (LedgerState (ShelleyBlock proto era) mk) x -> LedgerState (ShelleyBlock proto era) mk Source # | |||||||||
| (ShowMK mk, CanHardFork xs) => Show (LedgerState (HardForkBlock xs) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods showsPrec :: Int -> LedgerState (HardForkBlock xs) mk -> ShowS Source # show :: LedgerState (HardForkBlock xs) mk -> String Source # showList :: [LedgerState (HardForkBlock xs) mk] -> ShowS Source # | |||||||||
| (Bridge m a, ShowMK mk) => Show (LedgerState (DualBlock m a) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| Show (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods showsPrec :: Int -> LedgerState ByronBlock mk -> ShowS Source # show :: LedgerState ByronBlock mk -> String Source # showList :: [LedgerState ByronBlock mk] -> ShowS Source # | |||||||||
| (ShelleyBasedEra era, ShowMK mk) => Show (LedgerState (ShelleyBlock proto era) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| (NoThunksMK mk, CanHardFork xs) => NoThunks (LedgerState (HardForkBlock xs) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods noThunks :: Context -> LedgerState (HardForkBlock xs) mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> LedgerState (HardForkBlock xs) mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (LedgerState (HardForkBlock xs) mk) -> String # | |||||||||
| NoThunks (LedgerState (DualBlock m a) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods noThunks :: Context -> LedgerState (DualBlock m a) mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> LedgerState (DualBlock m a) mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (LedgerState (DualBlock m a) mk) -> String # | |||||||||
| NoThunks (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods noThunks :: Context -> LedgerState ByronBlock mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> LedgerState ByronBlock mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (LedgerState ByronBlock mk) -> String # | |||||||||
| (ShelleyBasedEra era, NoThunksMK mk) => NoThunks (LedgerState (ShelleyBlock proto era) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods noThunks :: Context -> LedgerState (ShelleyBlock proto era) mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> LedgerState (ShelleyBlock proto era) mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (LedgerState (ShelleyBlock proto era) mk) -> String # | |||||||||
| CanHardFork xs => GetTip (Ticked (LedgerState (HardForkBlock xs))) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods getTip :: forall (mk :: MapKind). Ticked (LedgerState (HardForkBlock xs)) mk -> Point (Ticked (LedgerState (HardForkBlock xs))) Source # | |||||||||
| Bridge m a => GetTip (Ticked (LedgerState (DualBlock m a))) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| GetTip (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). Ticked (LedgerState ByronBlock) mk -> Point (Ticked (LedgerState ByronBlock)) Source # | |||||||||
| GetTip (Ticked (LedgerState (ShelleyBlock proto era))) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods getTip :: forall (mk :: MapKind). Ticked (LedgerState (ShelleyBlock proto era)) mk -> Point (Ticked (LedgerState (ShelleyBlock proto era))) Source # | |||||||||
| ShelleyBasedEra era => CanStowLedgerTables (Ticked (LedgerState (ShelleyBlock proto era))) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods stowLedgerTables :: Ticked (LedgerState (ShelleyBlock proto era)) ValuesMK -> Ticked (LedgerState (ShelleyBlock proto era)) EmptyMK Source # unstowLedgerTables :: Ticked (LedgerState (ShelleyBlock proto era)) EmptyMK -> Ticked (LedgerState (ShelleyBlock proto era)) ValuesMK Source # | |||||||||
| (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) => HasLedgerTables (Ticked (LedgerState (HardForkBlock xs))) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (HardForkBlock xs)) mk -> LedgerTables (Ticked (LedgerState (HardForkBlock xs))) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (HardForkBlock xs)) any -> LedgerTables (Ticked (LedgerState (HardForkBlock xs))) mk -> Ticked (LedgerState (HardForkBlock xs)) mk Source # | |||||||||
| (Bridge m a, NoThunks (TxOut (LedgerState m)), NoThunks (TxIn (LedgerState m)), Show (TxOut (LedgerState m)), Show (TxIn (LedgerState m)), Eq (TxOut (LedgerState m)), Ord (TxIn (LedgerState m)), MemPack (TxIn (LedgerState m))) => HasLedgerTables (Ticked (LedgerState (DualBlock m a))) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (DualBlock m a)) mk -> LedgerTables (Ticked (LedgerState (DualBlock m a))) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (DualBlock m a)) any -> LedgerTables (Ticked (LedgerState (DualBlock m a))) mk -> Ticked (LedgerState (DualBlock m a)) mk Source # | |||||||||
| HasLedgerTables (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState ByronBlock) mk -> LedgerTables (Ticked (LedgerState ByronBlock)) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState ByronBlock) any -> LedgerTables (Ticked (LedgerState ByronBlock)) mk -> Ticked (LedgerState ByronBlock) mk Source # | |||||||||
| ShelleyBasedEra era => HasLedgerTables (Ticked (LedgerState (ShelleyBlock proto era))) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods projectLedgerTables :: forall (mk :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (ShelleyBlock proto era)) mk -> LedgerTables (Ticked (LedgerState (ShelleyBlock proto era))) mk Source # withLedgerTables :: forall (mk :: MapKind) (any :: MapKind). (CanMapMK mk, CanMapKeysMK mk, ZeroableMK mk) => Ticked (LedgerState (ShelleyBlock proto era)) any -> LedgerTables (Ticked (LedgerState (ShelleyBlock proto era))) mk -> Ticked (LedgerState (ShelleyBlock proto era)) mk Source # | |||||||||
| LedgerTablesAreTrivial (Ticked (LedgerState ByronBlock)) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods convertMapKind :: forall (mk :: MapKind) (mk' :: MapKind). Ticked (LedgerState ByronBlock) mk -> Ticked (LedgerState ByronBlock) mk' Source # | |||||||||
| IndexedMemPack (LedgerState (HardForkBlock '[ByronBlock]) EmptyMK) Void # | |||||||||
Defined in Ouroboros.Consensus.Byron.ByronHFC Methods indexedPackedByteCount :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Void -> Int Source # indexedPackM :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Void -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> Unpack s b Void Source # indexedTypeName :: LedgerState (HardForkBlock '[ByronBlock]) EmptyMK -> String Source # | |||||||||
| (txout ~ TxOut era, MemPack txout) => IndexedMemPack (LedgerState (HardForkBlock '[ShelleyBlock proto era]) EmptyMK) txout # | |||||||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC Methods indexedPackedByteCount :: LedgerState (HardForkBlock '[ShelleyBlock proto era]) EmptyMK -> txout -> Int Source # indexedPackM :: LedgerState (HardForkBlock '[ShelleyBlock proto era]) EmptyMK -> txout -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (HardForkBlock '[ShelleyBlock proto era]) EmptyMK -> Unpack s b txout Source # indexedTypeName :: LedgerState (HardForkBlock '[ShelleyBlock proto era]) EmptyMK -> String Source # | |||||||||
| (txout ~ TxOut (LedgerState m), IndexedMemPack (LedgerState m EmptyMK) txout) => IndexedMemPack (LedgerState (DualBlock m a) EmptyMK) txout Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual Methods indexedPackedByteCount :: LedgerState (DualBlock m a) EmptyMK -> txout -> Int Source # indexedPackM :: LedgerState (DualBlock m a) EmptyMK -> txout -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (DualBlock m a) EmptyMK -> Unpack s b txout Source # indexedTypeName :: LedgerState (DualBlock m a) EmptyMK -> String Source # | |||||||||
| IndexedMemPack (LedgerState ByronBlock EmptyMK) Void # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods indexedPackedByteCount :: LedgerState ByronBlock EmptyMK -> Void -> Int Source # indexedPackM :: LedgerState ByronBlock EmptyMK -> Void -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState ByronBlock EmptyMK -> Unpack s b Void Source # indexedTypeName :: LedgerState ByronBlock EmptyMK -> String Source # | |||||||||
| (txout ~ TxOut era, MemPack txout) => IndexedMemPack (LedgerState (ShelleyBlock proto era) EmptyMK) txout # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Methods indexedPackedByteCount :: LedgerState (ShelleyBlock proto era) EmptyMK -> txout -> Int Source # indexedPackM :: LedgerState (ShelleyBlock proto era) EmptyMK -> txout -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (ShelleyBlock proto era) EmptyMK -> Unpack s b txout Source # indexedTypeName :: LedgerState (ShelleyBlock proto era) EmptyMK -> String Source # | |||||||||
| CardanoHardForkConstraints c => IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) # | |||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods indexedPackedByteCount :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> CardanoTxOut c -> Int Source # indexedPackM :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> CardanoTxOut c -> Pack s () Source # indexedUnpackM :: Buffer b => forall s. LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> Unpack s b (CardanoTxOut c) Source # indexedTypeName :: LedgerState (HardForkBlock (CardanoEras c)) EmptyMK -> String Source # | |||||||||
| StandardHash blk => StandardHash (LedgerState blk :: MapKind -> Type) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Basics | |||||||||
| ShelleyCompatible proto era => DecodeDisk (ShelleyBlock proto era) (LedgerState (ShelleyBlock proto era) EmptyMK) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods decodeDisk :: CodecConfig (ShelleyBlock proto era) -> forall s. Decoder s (LedgerState (ShelleyBlock proto era) EmptyMK) Source # | |||||||||
| ShelleyCompatible proto era => EncodeDisk (ShelleyBlock proto era) (LedgerState (ShelleyBlock proto era) EmptyMK) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Node.Serialisation Methods encodeDisk :: CodecConfig (ShelleyBlock proto era) -> LedgerState (ShelleyBlock proto era) EmptyMK -> Encoding Source # | |||||||||
| Generic (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Associated Types
Methods from :: Ticked (LedgerState ByronBlock) mk -> Rep (Ticked (LedgerState ByronBlock) mk) x Source # to :: Rep (Ticked (LedgerState ByronBlock) mk) x -> Ticked (LedgerState ByronBlock) mk Source # | |||||||||
| Generic (Ticked (LedgerState (ShelleyBlock proto era)) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger Associated Types
Methods from :: Ticked (LedgerState (ShelleyBlock proto era)) mk -> Rep (Ticked (LedgerState (ShelleyBlock proto era)) mk) x Source # to :: Rep (Ticked (LedgerState (ShelleyBlock proto era)) mk) x -> Ticked (LedgerState (ShelleyBlock proto era)) mk Source # | |||||||||
| NoThunks (Ticked (LedgerState (DualBlock m a)) mk) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| NoThunks (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger Methods noThunks :: Context -> Ticked (LedgerState ByronBlock) mk -> IO (Maybe ThunkInfo) # wNoThunks :: Context -> Ticked (LedgerState ByronBlock) mk -> IO (Maybe ThunkInfo) # showTypeOf :: Proxy (Ticked (LedgerState ByronBlock) mk) -> String # | |||||||||
| Inject (Flip LedgerState mk) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Nary Methods inject :: forall x (xs :: [Type]). (CanHardFork xs, HasCanonicalTxIn xs, HasHardForkTxOut xs) => InjectionIndex xs x -> Flip LedgerState mk x -> Flip LedgerState mk (HardForkBlock xs) Source # | |||||||||
| Isomorphic (Flip LedgerState mk) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Embed.Unary Methods project :: NoHardForks blk => Flip LedgerState mk (HardForkBlock '[blk]) -> Flip LedgerState mk blk Source # inject :: NoHardForks blk => Flip LedgerState mk blk -> Flip LedgerState mk (HardForkBlock '[blk]) Source # | |||||||||
| data LedgerState ByronBlock mk # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger data LedgerState ByronBlock mk = ByronLedgerState {
| |||||||||
| type TranslationError era (Flip LedgerState mk :.: ShelleyBlock proto) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.ShelleyHFC | |||||||||
| type AuxLedgerEvent (LedgerState (HardForkBlock xs)) Source # | |||||||||
| type AuxLedgerEvent (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| type AuxLedgerEvent (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type AuxLedgerEvent (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| type LedgerCfg (LedgerState (HardForkBlock xs)) Source # | |||||||||
| type LedgerCfg (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| type LedgerCfg (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type LedgerCfg (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| type LedgerErr (LedgerState (HardForkBlock xs)) Source # | |||||||||
| type LedgerErr (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| type LedgerErr (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type LedgerErr (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| newtype LedgerState (HardForkBlock xs) mk Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics newtype LedgerState (HardForkBlock xs) mk = HardForkLedgerState {
| |||||||||
| type TxIn (LedgerState (HardForkBlock xs)) Source # | Must be the | ||||||||
| type TxIn (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| type TxIn (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type TxIn (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| type TxOut (LedgerState (HardForkBlock xs)) Source # | Must be the | ||||||||
| type TxOut (LedgerState (DualBlock m a)) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| type TxOut (LedgerState ByronBlock) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger | |||||||||
| type TxOut (LedgerState (ShelleyBlock proto era)) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger | |||||||||
| type Rep (LedgerState ByronBlock mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger type Rep (LedgerState ByronBlock mk) = D1 ('MetaData "LedgerState" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ByronLedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "byronLedgerTipBlockNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (WithOrigin BlockNo)) :*: (S1 ('MetaSel ('Just "byronLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainValidationState) :*: S1 ('MetaSel ('Just "byronLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByronTransition)))) | |||||||||
| type Rep (LedgerState (ShelleyBlock proto era) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger type Rep (LedgerState (ShelleyBlock proto era) mk) = D1 ('MetaData "LedgerState" "Ouroboros.Consensus.Shelley.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "ShelleyLedgerState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shelleyLedgerTip") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (WithOrigin (ShelleyTip proto era))) :*: S1 ('MetaSel ('Just "shelleyLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewEpochState era))) :*: (S1 ('MetaSel ('Just "shelleyLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ShelleyTransition) :*: (S1 ('MetaSel ('Just "shelleyLedgerTables") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerTables (LedgerState (ShelleyBlock proto era)) mk)) :*: S1 ('MetaSel ('Just "shelleyLedgerLatestPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PerasRoundNo)))))) | |||||||||
| data LedgerState (DualBlock m a) mk Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual | |||||||||
| data LedgerState (ShelleyBlock proto era) mk # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger data LedgerState (ShelleyBlock proto era) mk = ShelleyLedgerState {
| |||||||||
| data Ticked (LedgerState (HardForkBlock xs) :: MapKind -> Type) (mk :: MapKind) Source # | |||||||||
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger data Ticked (LedgerState (HardForkBlock xs) :: MapKind -> Type) (mk :: MapKind) = TickedHardForkLedgerState {} | |||||||||
| data Ticked (LedgerState (DualBlock m a) :: MapKind -> Type) (mk :: MapKind) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Dual data Ticked (LedgerState (DualBlock m a) :: MapKind -> Type) (mk :: MapKind) = TickedDualLedgerState {} | |||||||||
| data Ticked (LedgerState ByronBlock) (mk :: MapKind) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger data Ticked (LedgerState ByronBlock) (mk :: MapKind) = TickedByronLedgerState {
| |||||||||
| data Ticked (LedgerState (ShelleyBlock proto era) :: MapKind -> Type) (mk :: MapKind) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger data Ticked (LedgerState (ShelleyBlock proto era) :: MapKind -> Type) (mk :: MapKind) = TickedShelleyLedgerState {
| |||||||||
| type HeaderHash (LedgerState blk :: MapKind -> Type) Source # | |||||||||
Defined in Ouroboros.Consensus.Ledger.Basics | |||||||||
| type Rep (Ticked (LedgerState ByronBlock) mk) # | |||||||||
Defined in Ouroboros.Consensus.Byron.Ledger.Ledger type Rep (Ticked (LedgerState ByronBlock) mk) = D1 ('MetaData "Ticked" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "TickedByronLedgerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "tickedByronLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainValidationState) :*: S1 ('MetaSel ('Just "untickedByronLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByronTransition))) | |||||||||
| type Rep (Ticked (LedgerState (ShelleyBlock proto era)) mk) # | |||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Ledger type Rep (Ticked (LedgerState (ShelleyBlock proto era)) mk) = D1 ('MetaData "Ticked" "Ouroboros.Consensus.Shelley.Ledger.Ledger" "ouroboros-consensus-3.0.0.0-l-cardano-af9592d6f64ab87e47c798dee6e1db964ebb0989a04b05617d48118746c0307b" 'False) (C1 ('MetaCons "TickedShelleyLedgerState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "untickedShelleyLedgerTip") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (WithOrigin (ShelleyTip proto era))) :*: S1 ('MetaSel ('Just "tickedShelleyLedgerTransition") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ShelleyTransition)) :*: (S1 ('MetaSel ('Just "tickedShelleyLedgerState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewEpochState era)) :*: (S1 ('MetaSel ('Just "tickedShelleyLedgerTables") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerTables (LedgerState (ShelleyBlock proto era)) mk)) :*: S1 ('MetaSel ('Just "tickedShelleyLedgerLatestPerasCertRound") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PerasRoundNo)))))) | |||||||||
getProgress :: SlotNo -> EraHistory -> Either PastHorizonException (RelativeTime, SlotLength) Source #
getSlotForRelativeTime :: RelativeTime -> EraHistory -> Either PastHorizonException SlotNo Source #
Returns the slot number for provided relative time from SystemStart
slotToUTCTime :: SystemStart -> EraHistory -> SlotNo -> Either PastHorizonException UTCTime Source #
Convert a SlotNo to a UTCTime given the SystemStart and EraHistory.
decodeLedgerPeerSnapshot :: forall (ledgerPeersKind :: LedgerPeersKind). SingLedgerPeersKind ledgerPeersKind -> ShelleyNodeToClientVersion -> Serialised (LedgerPeerSnapshot ledgerPeersKind) -> Either (ByteString, DecoderError) (LedgerPeerSnapshot ledgerPeersKind) Source #
Convenience functions
data QueryConvenienceError Source #
Constructors
| AcqFailure AcquiringFailure | |
| QueryEraMismatch EraMismatch | |
| ByronEraNotSupported | |
| QceUnsupportedNtcVersion !UnsupportedNtcVersionError | |
| QceUnexpectedException !SomeException |
Instances
| Error QueryConvenienceError Source # | |
Defined in Cardano.Api.Query.Internal.Convenience Methods prettyError :: QueryConvenienceError -> Doc ann Source # | |
| Show QueryConvenienceError Source # | |
Defined in Cardano.Api.Query.Internal.Convenience | |
newtype TxCurrentTreasuryValue Source #
Constructors
| TxCurrentTreasuryValue | |
Fields | |
Instances
determineEra :: LocalNodeConnectInfo -> ExceptT AcquiringFailure IO AnyCardanoEra Source #
Query the node to determine which era it is in.
Simplest query related
executeQueryCardanoMode :: SocketPath -> NetworkId -> QueryInMode (Either EraMismatch result) -> ExceptT QueryConvenienceError IO result Source #
Execute a query against the local node. The local node must be in CardanoMode.
executeQueryAnyMode :: LocalNodeConnectInfo -> QueryInMode (Either EraMismatch result) -> ExceptT QueryConvenienceError IO result Source #
Execute a query against the local node in any mode.
queryStateForBalancedTx :: CardanoEra era -> [TxIn] -> [Certificate (ShelleyLedgerEra era)] -> LocalStateQueryExpr block point QueryInMode r IO (Either QueryConvenienceError (UTxO era, LedgerProtocolParameters era, EraHistory, SystemStart, Set PoolId, Map StakeCredential Coin, Map (Credential 'DRepRole) (CompactForm Coin), Maybe (Featured ConwayEraOnwards era TxCurrentTreasuryValue))) Source #
A convenience function to query the relevant information, from the local node, for Cardano.Api.Tx.Internal.Convenience.constructBalancedTx
Query wrapper functions
queryAccountState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch ChainAccountState)) Source #
queryChainBlockNo :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (WithOrigin BlockNo)) Source #
queryChainPoint :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError ChainPoint) Source #
queryConstitution :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Constitution (ShelleyLedgerEra era)))) Source #
queryCurrentEpochState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedCurrentEpochState era))) Source #
queryCurrentEra :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError AnyCardanoEra) Source #
queryDebugLedgerState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedDebugLedgerState era))) Source #
queryEpoch :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch EpochNo)) Source #
queryConstitutionHash :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SafeHash AnchorData))) Source #
queryEraHistory :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError EraHistory) Source #
queryGenesisParameters :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (GenesisParameters ShelleyEra))) Source #
queryPoolDistribution :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Serialised (PoolDistribution era)))) Source #
queryPoolState :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch SerialisedPoolState)) Source #
queryProtocolParameters :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (PParams (ShelleyLedgerEra era)))) Source #
queryProtocolState :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (ProtocolState era))) Source #
queryStakeAddresses :: ShelleyBasedEra era -> Set StakeCredential -> NetworkId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeAddress Coin, Map StakeAddress PoolId))) Source #
queryStakeDelegDeposits :: BabbageEraOnwards era -> Set StakeCredential -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeCredential Coin))) Source #
queryStakeDistribution :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (Hash StakePoolKey) Rational))) Source #
queryStakePoolParameters :: ShelleyBasedEra era -> Set PoolId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map PoolId StakePoolParameters))) Source #
queryStakePools :: ShelleyBasedEra era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Set PoolId))) Source #
queryStakeSnapshot :: BabbageEraOnwards era -> Maybe (Set PoolId) -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (SerialisedStakeSnapshots era))) Source #
querySystemStart :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError SystemStart) Source #
queryUtxo :: ShelleyBasedEra era -> QueryUTxOFilter -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (UTxO era))) Source #
queryLedgerPeerSnapshot :: forall era (ledgerPeersKind :: LedgerPeersKind) block point r. ShelleyBasedEra era -> SingLedgerPeersKind ledgerPeersKind -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (LedgerPeerSnapshot ledgerPeersKind))) Source #
data MemberStatus Source #
Constructors
| Active | |
| Expired | |
| Unrecognized | This can happen when a hot credential for an unknown cold credential exists. Such Committee member will be either removed from the state at the next epoch boundary or enacted as a new member. |
Instances
| ToJSON MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods toJSON :: MemberStatus -> Value # toEncoding :: MemberStatus -> Encoding # toJSONList :: [MemberStatus] -> Value # toEncodingList :: [MemberStatus] -> Encoding # omitField :: MemberStatus -> Bool # | |||||
| DecCBOR MemberStatus Source # | |||||
| EncCBOR MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods encCBOR :: MemberStatus -> Encoding Source # | |||||
| Eq MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods (==) :: MemberStatus -> MemberStatus -> Bool Source # (/=) :: MemberStatus -> MemberStatus -> Bool Source # | |||||
| Ord MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods compare :: MemberStatus -> MemberStatus -> Ordering Source # (<) :: MemberStatus -> MemberStatus -> Bool Source # (<=) :: MemberStatus -> MemberStatus -> Bool Source # (>) :: MemberStatus -> MemberStatus -> Bool Source # (>=) :: MemberStatus -> MemberStatus -> Bool Source # max :: MemberStatus -> MemberStatus -> MemberStatus Source # min :: MemberStatus -> MemberStatus -> MemberStatus Source # | |||||
| Bounded MemberStatus Source # | |||||
| Enum MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods succ :: MemberStatus -> MemberStatus Source # pred :: MemberStatus -> MemberStatus Source # toEnum :: Int -> MemberStatus Source # fromEnum :: MemberStatus -> Int Source # enumFrom :: MemberStatus -> [MemberStatus] Source # enumFromThen :: MemberStatus -> MemberStatus -> [MemberStatus] Source # enumFromTo :: MemberStatus -> MemberStatus -> [MemberStatus] Source # enumFromThenTo :: MemberStatus -> MemberStatus -> MemberStatus -> [MemberStatus] Source # | |||||
| Generic MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Associated Types
Methods from :: MemberStatus -> Rep MemberStatus x Source # to :: Rep MemberStatus x -> MemberStatus Source # | |||||
| Show MemberStatus Source # | |||||
| type Rep MemberStatus Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState type Rep MemberStatus = D1 ('MetaData "MemberStatus" "Cardano.Ledger.Api.State.Query.CommitteeMembersState" "cardano-ledger-api-1.13.0.0-a95ea9d544a8b5a5a4c3ab4f5050be7915deb7ad5b8a1643ff71613fdc50d928" 'False) (C1 ('MetaCons "Active" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Expired" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Unrecognized" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data CommitteeMembersState Source #
Constructors
| CommitteeMembersState | |
Fields
| |
Instances
| ToJSON CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods toJSON :: CommitteeMembersState -> Value # toEncoding :: CommitteeMembersState -> Encoding # toJSONList :: [CommitteeMembersState] -> Value # toEncodingList :: [CommitteeMembersState] -> Encoding # omitField :: CommitteeMembersState -> Bool # | |||||
| DecCBOR CommitteeMembersState Source # | |||||
| EncCBOR CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods | |||||
| ToKeyValuePairs CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods toKeyValuePairs :: KeyValue e kv => CommitteeMembersState -> [kv] Source # | |||||
| Eq CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods (==) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # (/=) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # | |||||
| Ord CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Methods compare :: CommitteeMembersState -> CommitteeMembersState -> Ordering Source # (<) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # (<=) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # (>) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # (>=) :: CommitteeMembersState -> CommitteeMembersState -> Bool Source # max :: CommitteeMembersState -> CommitteeMembersState -> CommitteeMembersState Source # min :: CommitteeMembersState -> CommitteeMembersState -> CommitteeMembersState Source # | |||||
| Generic CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState Associated Types
Methods from :: CommitteeMembersState -> Rep CommitteeMembersState x Source # to :: Rep CommitteeMembersState x -> CommitteeMembersState Source # | |||||
| Show CommitteeMembersState Source # | |||||
| type Rep CommitteeMembersState Source # | |||||
Defined in Cardano.Ledger.Api.State.Query.CommitteeMembersState type Rep CommitteeMembersState = D1 ('MetaData "CommitteeMembersState" "Cardano.Ledger.Api.State.Query.CommitteeMembersState" "cardano-ledger-api-1.13.0.0-a95ea9d544a8b5a5a4c3ab4f5050be7915deb7ad5b8a1643ff71613fdc50d928" 'False) (C1 ('MetaCons "CommitteeMembersState" 'PrefixI 'True) (S1 ('MetaSel ('Just "csCommittee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'ColdCommitteeRole) CommitteeMemberState)) :*: (S1 ('MetaSel ('Just "csThreshold") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe UnitInterval)) :*: S1 ('MetaSel ('Just "csEpochNo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo)))) | |||||
queryCommitteeMembersState :: ConwayEraOnwards era -> Set (Credential 'ColdCommitteeRole) -> Set (Credential 'HotCommitteeRole) -> Set MemberStatus -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch CommitteeMembersState)) Source #
Returns info about committee members filtered by: cold credentials, hot credentials and statuses. If empty sets are passed as filters, then no filtering is done.
queryDRepStakeDistribution Source #
Arguments
| :: ConwayEraOnwards era | |
| -> Set DRep | An empty DRep set means that distributions for all DReps will be returned |
| -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map DRep Coin))) |
querySPOStakeDistribution Source #
Arguments
| :: ConwayEraOnwards era | |
| -> Set (KeyHash 'StakePool) | An empty SPO key hash set means that distributions for all SPOs will be returned |
| -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (KeyHash 'StakePool) Coin))) |
Arguments
| :: ConwayEraOnwards era | |
| -> Set (Credential 'DRepRole) | An empty credentials set means that states for all DReps will be returned |
| -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map (Credential 'DRepRole) DRepState))) |
queryGovState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (GovState (ShelleyLedgerEra era)))) Source #
queryRatifyState :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (RatifyState (ShelleyLedgerEra era)))) Source #
queryFuturePParams :: ConwayEraOnwards era -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Maybe (PParams (ShelleyLedgerEra era))))) Source #
queryStakeVoteDelegatees :: ConwayEraOnwards era -> Set StakeCredential -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Map StakeCredential DRep))) Source #
queryProposals :: ConwayEraOnwards era -> Set GovActionId -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch (Seq (GovActionState (ShelleyLedgerEra era))))) Source #
queryStakePoolDefaultVote :: ConwayEraOnwards era -> KeyHash 'StakePool -> LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (Either EraMismatch DefaultVote)) Source #
queryLedgerConfig :: LocalStateQueryExpr block point QueryInMode r IO (Either UnsupportedNtcVersionError (CardanoLedgerConfig StandardCrypto)) Source #
newtype DelegationsAndRewards Source #
A mapping of Shelley reward accounts to both the stake pool that they delegate to and their reward account balance.
Constructors
| DelegationsAndRewards (Map StakeAddress Coin, Map StakeAddress PoolId) |
Instances
| FromJSON DelegationsAndRewards Source # | |
Defined in Cardano.Api.Query.Internal.Type.DelegationsAndRewards Methods parseJSON :: Value -> Parser DelegationsAndRewards # parseJSONList :: Value -> Parser [DelegationsAndRewards] # | |
| ToJSON DelegationsAndRewards Source # | |
Defined in Cardano.Api.Query.Internal.Type.DelegationsAndRewards Methods toJSON :: DelegationsAndRewards -> Value # toEncoding :: DelegationsAndRewards -> Encoding # toJSONList :: [DelegationsAndRewards] -> Value # toEncodingList :: [DelegationsAndRewards] -> Encoding # omitField :: DelegationsAndRewards -> Bool # | |
| Eq DelegationsAndRewards Source # | |
Defined in Cardano.Api.Query.Internal.Type.DelegationsAndRewards Methods (==) :: DelegationsAndRewards -> DelegationsAndRewards -> Bool Source # (/=) :: DelegationsAndRewards -> DelegationsAndRewards -> Bool Source # | |
| Show DelegationsAndRewards Source # | |
mergeDelegsAndRewards :: DelegationsAndRewards -> [(StakeAddress, Maybe Coin, Maybe PoolId)] Source #
Debugging utilities
toDebugLedgerStatePair :: KeyValue e a => ShelleyBasedEra era -> DebugLedgerState era -> [a] Source #
toLedgerUTxO :: ShelleyBasedEra era -> UTxO era -> UTxO (ShelleyLedgerEra era) Source #
fromLedgerUTxO :: ShelleyBasedEra era -> UTxO (ShelleyLedgerEra era) -> UTxO era Source #