Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Shelley.Eras
Synopsis
- data AllegraEra
- data AlonzoEra
- data BabbageEra
- data ConwayEra
- data MaryEra
- data ShelleyEra
- type StandardAllegra = AllegraEra
- type StandardAlonzo = AlonzoEra
- type StandardBabbage = BabbageEra
- type StandardConway = ConwayEra
- type StandardMary = MaryEra
- type StandardShelley = ShelleyEra
- data ConwayEraGovDict era where
- ConwayEraGovDict ∷ ∀ era. ConwayEraGov era ⇒ ConwayEraGovDict era
- class (EraSegWits era, EraGov era, ApplyTx era, ApplyBlock era, EraTransition era, GetLedgerView era, NoThunks (StashedAVVMAddresses era), EncCBOR (StashedAVVMAddresses era), DecCBOR (StashedAVVMAddresses era), Show (StashedAVVMAddresses era), Eq (StashedAVVMAddresses era), DecCBOR (PredicateFailure (EraRule "LEDGER" era)), EncCBOR (PredicateFailure (EraRule "LEDGER" era)), DecCBOR (PredicateFailure (EraRule "UTXOW" era)), EncCBOR (PredicateFailure (EraRule "UTXOW" era)), Eq (PredicateFailure (EraRule "BBODY" era)), Show (PredicateFailure (EraRule "BBODY" era)), NoThunks (PredicateFailure (EraRule "BBODY" era)), NoThunks (TranslationContext era), ToCBOR (TranslationContext era), FromCBOR (TranslationContext era)) ⇒ ShelleyBasedEra era where
- applyShelleyBasedTx ∷ Globals → LedgerEnv era → LedgerState era → WhetherToIntervene → Tx era → Except (ApplyTxError era) (LedgerState era, Validated (Tx era))
- getConwayEraGovDict ∷ proxy era → Maybe (ConwayEraGovDict era)
- newtype WrapTx era = WrapTx {}
- isBeforeConway ∷ Era era ⇒ Proxy era → Bool
- data StandardCrypto
Eras based on the Shelley ledger
data AllegraEra Source #
The Allegra era
Instances
The Alonzo era
Instances
AlonzoEraPParams AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams Methods hkdCoinsPerUTxOWordL ∷ ∀ (f ∷ Type → Type). (HKDFunctor f, ExactEra AlonzoEra AlonzoEra) ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f CoinPerWord) Source # hkdCostModelsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f CostModels) Source # hkdPricesL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f Prices) Source # hkdMaxTxExUnitsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f ExUnits) Source # hkdMaxBlockExUnitsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f ExUnits) Source # hkdMaxValSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f Natural) Source # hkdCollateralPercentageL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f Natural) Source # hkdMaxCollateralInputsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f AlonzoEra) (HKD f Natural) Source # | |||||||||||||
AlonzoEraScript AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts Associated Types
Methods eraMaxLanguage ∷ Language Source # toPlutusScript ∷ Script AlonzoEra → Maybe (PlutusScript AlonzoEra) Source # fromPlutusScript ∷ PlutusScript AlonzoEra → Script AlonzoEra Source # mkPlutusScript ∷ ∀ (l ∷ Language). PlutusLanguage l ⇒ Plutus l → Maybe (PlutusScript AlonzoEra) Source # withPlutusScript ∷ PlutusScript AlonzoEra → (∀ (l ∷ Language). PlutusLanguage l ⇒ Plutus l → a) → a Source # hoistPlutusPurpose ∷ (∀ ix it. g ix it → f ix it) → PlutusPurpose g AlonzoEra → PlutusPurpose f AlonzoEra Source # mkSpendingPurpose ∷ f Word32 TxIn → PlutusPurpose f AlonzoEra Source # toSpendingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 TxIn) Source # mkMintingPurpose ∷ f Word32 PolicyID → PlutusPurpose f AlonzoEra Source # toMintingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 PolicyID) Source # mkCertifyingPurpose ∷ f Word32 (TxCert AlonzoEra) → PlutusPurpose f AlonzoEra Source # toCertifyingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 (TxCert AlonzoEra)) Source # mkRewardingPurpose ∷ f Word32 RewardAccount → PlutusPurpose f AlonzoEra Source # toRewardingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 RewardAccount) Source # upgradePlutusPurposeAsIx ∷ PlutusPurpose AsIx (PreviousEra AlonzoEra) → PlutusPurpose AsIx AlonzoEra Source # | |||||||||||||
AlonzoEraTx AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Tx | |||||||||||||
AlonzoEraTxAuxData AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxAuxData Methods plutusScriptsTxAuxDataL ∷ Lens' (TxAuxData AlonzoEra) (Map Language (NonEmpty PlutusBinary)) Source # | |||||||||||||
AlonzoEraTxBody AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxBody.Internal Methods collateralInputsTxBodyL ∷ Lens' (TxBody AlonzoEra) (Set TxIn) Source # reqSignerHashesTxBodyL ∷ Lens' (TxBody AlonzoEra) (Set (KeyHash 'Witness)) Source # scriptIntegrityHashTxBodyL ∷ Lens' (TxBody AlonzoEra) (StrictMaybe ScriptIntegrityHash) Source # networkIdTxBodyL ∷ Lens' (TxBody AlonzoEra) (StrictMaybe Network) Source # redeemerPointer ∷ TxBody AlonzoEra → PlutusPurpose AsItem AlonzoEra → StrictMaybe (PlutusPurpose AsIx AlonzoEra) Source # redeemerPointerInverse ∷ TxBody AlonzoEra → PlutusPurpose AsIx AlonzoEra → StrictMaybe (PlutusPurpose AsIxItem AlonzoEra) Source # | |||||||||||||
AlonzoEraTxOut AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxOut Methods dataHashTxOutL ∷ Lens' (TxOut AlonzoEra) (StrictMaybe DataHash) Source # datumTxOutF ∷ SimpleGetter (TxOut AlonzoEra) (Datum AlonzoEra) Source # | |||||||||||||
EraScript AlonzoEra ⇒ AlonzoEraTxWits AlonzoEra | |||||||||||||
AlonzoEraUTxO AlonzoEra | |||||||||||||
Era AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era Associated Types
| |||||||||||||
GetLedgerView AlonzoEra | |||||||||||||
Defined in Cardano.Protocol.TPraos.API Methods currentLedgerView ∷ NewEpochState AlonzoEra → LedgerView Source # futureLedgerView ∷ MonadError (FutureLedgerViewError AlonzoEra) m ⇒ Globals → NewEpochState AlonzoEra → SlotNo → m LedgerView Source # | |||||||||||||
ShelleyBasedEra AlonzoEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv AlonzoEra → LedgerState AlonzoEra → WhetherToIntervene → Tx AlonzoEra → Except (ApplyTxError AlonzoEra) (LedgerState AlonzoEra, Validated (Tx AlonzoEra)) Source # getConwayEraGovDict ∷ proxy AlonzoEra → Maybe (ConwayEraGovDict AlonzoEra) Source # | |||||||||||||
TranslateEra AlonzoEra Tx | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation Associated Types
Methods translateEra ∷ TranslationContext AlonzoEra → Tx (PreviousEra AlonzoEra) → Except (TranslationError AlonzoEra Tx) (Tx AlonzoEra) Source # | |||||||||||||
TranslateEra AlonzoEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext AlonzoEra → WrapTx (PreviousEra AlonzoEra) → Except (TranslationError AlonzoEra WrapTx) (WrapTx AlonzoEra) Source # | |||||||||||||
InjectRuleFailure "BBODY" AlonzoBbodyPredFailure AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods injectFailure ∷ AlonzoBbodyPredFailure AlonzoEra → EraRuleFailure "BBODY" AlonzoEra Source # | |||||||||||||
InjectRuleFailure "UTXO" AlonzoUtxoPredFailure AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "UTXO" AlonzoEra Source # | |||||||||||||
InjectRuleFailure "UTXOS" AlonzoUtxosPredFailure AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "UTXOS" AlonzoEra Source # | |||||||||||||
InjectRuleFailure "UTXOW" AlonzoUtxowPredFailure AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods injectFailure ∷ AlonzoUtxowPredFailure AlonzoEra → EraRuleFailure "UTXOW" AlonzoEra Source # | |||||||||||||
SafeToHash (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
NFData (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods rnf ∷ PlutusScript AlonzoEra → () # | |||||||||||||
Generic (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts Associated Types
Methods from ∷ PlutusScript AlonzoEra → Rep (PlutusScript AlonzoEra) x # to ∷ Rep (PlutusScript AlonzoEra) x → PlutusScript AlonzoEra # | |||||||||||||
Show (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
Show (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods showsPrec ∷ Int → CanonicalTxIn (CardanoEras c) → ShowS # show ∷ CanonicalTxIn (CardanoEras c) → String # showList ∷ [CanonicalTxIn (CardanoEras c)] → ShowS # | |||||||||||||
Eq (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # (/=) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # | |||||||||||||
Eq (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (/=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # | |||||||||||||
Ord (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods compare ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Ordering # (<) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # (<=) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # (>) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # (>=) ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → Bool # max ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → PlutusScript AlonzoEra # min ∷ PlutusScript AlonzoEra → PlutusScript AlonzoEra → PlutusScript AlonzoEra # | |||||||||||||
Ord (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Ordering # (<) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (<=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # max ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # min ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # | |||||||||||||
MemPack (PlutusScript AlonzoEra) | It might seem that this instance unnecessarily utilizes a zero Tag, but it is needed for forward compatibility with plutus scripts from future eras. That being said, currently this instance is not used at all, since reference scripts where
introduced in Babbage era and | ||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
CardanoHardForkConstraints c ⇒ MemPack (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount ∷ CanonicalTxIn (CardanoEras c) → Int Source # packM ∷ CanonicalTxIn (CardanoEras c) → Pack s () Source # unpackM ∷ Buffer b ⇒ Unpack b (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
NoThunks (PlutusScript AlonzoEra) | |||||||||||||
NoThunks (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CanonicalTxIn (CardanoEras c)) → String Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CanHardFork (CardanoEras c) Source # | When performing era translations, two eras have special behaviours on the ledger tables:
| ||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation ∷ EraTranslation (CardanoEras c) Source # hardForkChainSel ∷ Tails AcrossEraSelection (CardanoEras c) Source # hardForkInjectTxs ∷ InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure ∷ NS WrapTxMeasure (CardanoEras c) → HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CondenseConstraints (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Condense | |||||||||||||
CardanoHardForkConstraints c ⇒ HasCanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn ∷ Index (CardanoEras c) x → TxIn (LedgerState x) → CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn ∷ Index (CardanoEras c) x → CanonicalTxIn (CardanoEras c) → TxIn (LedgerState x) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ HasHardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut ∷ Index (CardanoEras c) x → TxOut (LedgerState x) → HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut ∷ Index (CardanoEras c) x → HardForkTxOut (CardanoEras c) → TxOut (LedgerState x) Source # txOutEjections ∷ NP ((K (NS WrapTxOut (CardanoEras c)) ∷ Type → Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations ∷ Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ BlockSupportsHFLedgerQuery (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFLookupTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # answerBlockQueryHFTraverse ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFTraverseTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # queryLedgerGetTraversingFilter ∷ Index (CardanoEras c) x → BlockQuery x 'QFTraverseTables result → TxOut (LedgerState (HardForkBlock (CardanoEras c))) → Bool Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerialiseHFC (CardanoEras c) Source # | Important: we need to maintain binary compatibility with Byron blocks, as they are already stored on disk. We also want to be able to efficiently detect (without having to peek far ahead) whether we're dealing with a Byron or Shelley block, so that we can invoke the right decoder. We plan to have a few more hard forks after Shelley (Goguen, Basho, Voltaire), so we want a future-proof envelope for distinguishing the different block types, i.e., a byte indicating the era. Byron does not provide such an envelope. However, a Byron block is a CBOR
2-tuple with the first element being a tag ( We encode a
For more details, see: https://github.com/IntersectMBO/ouroboros-network/pull/1175#issuecomment-558147194 | ||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → HardForkBlock (CardanoEras c) → Encoding Source # decodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → ∀ s. Decoder s (ByteString → HardForkBlock (CardanoEras c)) Source # reconstructHfcPrefixLen ∷ proxy (Header (HardForkBlock (CardanoEras c))) → PrefixLen Source # reconstructHfcNestedCtxt ∷ proxy (Header (HardForkBlock (CardanoEras c))) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo ∷ HardForkBlock (CardanoEras c) → BinaryBlockInfo Source # estimateHfcBlockSize ∷ Header (HardForkBlock (CardanoEras c)) → SizeInBytes Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) Source # | |||||||||||||
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 # | |||||||||||||
CardanoHardForkConstraints c ⇒ SupportedNetworkProtocolVersion (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions ∷ Proxy (CardanoBlock c) → Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions ∷ Proxy (CardanoBlock c) → Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion ∷ Proxy (CardanoBlock c) → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||
PraosCrypto c ⇒ ShelleyCompatible (TPraos c) AlonzoEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
ToJSON (AlonzoPParams StrictMaybe AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams Methods toJSON ∷ AlonzoPParams StrictMaybe AlonzoEra → Value Source # toEncoding ∷ AlonzoPParams StrictMaybe AlonzoEra → Encoding Source # toJSONList ∷ [AlonzoPParams StrictMaybe AlonzoEra] → Value Source # toEncodingList ∷ [AlonzoPParams StrictMaybe AlonzoEra] → Encoding Source # omitField ∷ AlonzoPParams StrictMaybe AlonzoEra → Bool Source # | |||||||||||||
ToJSON (AlonzoPParams Identity AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams Methods toJSON ∷ AlonzoPParams Identity AlonzoEra → Value Source # toEncoding ∷ AlonzoPParams Identity AlonzoEra → Encoding Source # toJSONList ∷ [AlonzoPParams Identity AlonzoEra] → Value Source # toEncodingList ∷ [AlonzoPParams Identity AlonzoEra] → Encoding Source # omitField ∷ AlonzoPParams Identity AlonzoEra → Bool Source # | |||||||||||||
ShelleyCompatible p AlonzoEra ⇒ TxLimits (ShelleyBlock p AlonzoEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
Methods txMeasure ∷ LedgerConfig (ShelleyBlock p AlonzoEra) → TickedLedgerState (ShelleyBlock p AlonzoEra) ValuesMK → GenTx (ShelleyBlock p AlonzoEra) → Except (ApplyTxErr (ShelleyBlock p AlonzoEra)) (TxMeasure (ShelleyBlock p AlonzoEra)) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig (ShelleyBlock p AlonzoEra) → TickedLedgerState (ShelleyBlock p AlonzoEra) mk → TxMeasure (ShelleyBlock p AlonzoEra) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) Source # | |||||||||||||
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 ⇒ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → Unpack b (CardanoTxOut c) Source # indexedTypeName ∷ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → String Source # | |||||||||||||
type ContextError AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Plutus.TxInfo | |||||||||||||
newtype TxInfoResult AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Plutus.TxInfo newtype TxInfoResult AlonzoEra = AlonzoTxInfoResult (Either (ContextError AlonzoEra) (PlutusTxInfo 'PlutusV1)) | |||||||||||||
newtype PlutusScript AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
type CertState AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.CertState | |||||||||||||
type NativeScript AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
type Script AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
type Tx AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Tx | |||||||||||||
type TxAuxData AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxAuxData | |||||||||||||
type TxBody AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxBody.Internal | |||||||||||||
type TxBodyUpgradeError AlonzoEra | |||||||||||||
type TxOut AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxOut | |||||||||||||
type TxSeq AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxSeq.Internal | |||||||||||||
type TxUpgradeError AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Tx | |||||||||||||
type TxWits AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||||||||||
type Value AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type PreviousEra AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type ProtVerHigh AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type ProtVerLow AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type TranslationContext AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TxCert AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxCert | |||||||||||||
type TxCertUpgradeError AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.TxCert | |||||||||||||
type Genesis AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Genesis | |||||||||||||
type GovState AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||||||||||
type InstantStake AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.State.Stake | |||||||||||||
type ScriptsNeeded AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.UTxO | |||||||||||||
data TransitionConfig AlonzoEra | |||||||||||||
type PlutusPurpose f AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
type EraRule "BBODY" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "DELEG" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "DELEGS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "DELPL" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "EPOCH" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "LEDGER" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "LEDGERS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "MIR" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "NEWEPOCH" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "NEWPP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "POOL" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "POOLREAP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "PPUP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "RUPD" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "SNAP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "TICK" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "TICKF" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "UPEC" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "UTXO" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "UTXOS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRule "UTXOW" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Era | |||||||||||||
type EraRuleEvent "LEDGER" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules | |||||||||||||
type EraRuleEvent "PPUP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ppup | |||||||||||||
type EraRuleEvent "TICK" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules | |||||||||||||
type EraRuleFailure "BBODY" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody | |||||||||||||
type EraRuleFailure "DELEG" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Deleg | |||||||||||||
type EraRuleFailure "DELEGS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Delegs | |||||||||||||
type EraRuleFailure "DELPL" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Delpl | |||||||||||||
type EraRuleFailure "LEDGER" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||
type EraRuleFailure "LEDGERS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledgers | |||||||||||||
type EraRuleFailure "POOL" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Pool | |||||||||||||
type EraRuleFailure "PPUP" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ppup | |||||||||||||
type EraRuleFailure "UTXO" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||
type EraRuleFailure "UTXOS" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||
type EraRuleFailure "UTXOW" AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||
type DowngradePParams f AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||||||||||
type PParamsHKD f AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||||||||||
type UpgradePParams f AlonzoEra | |||||||||||||
Defined in Cardano.Ledger.Alonzo.PParams | |||||||||||||
type TranslationError AlonzoEra Tx | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra CommitteeState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra DState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra PState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra VState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra PParams | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra FuturePParams | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra UTxO | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra ShelleyCertState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra ShelleyGovState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra EpochState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra LedgerState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra NewEpochState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra UTxOState | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra ProposedPPUpdates | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra ShelleyInstantStake | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Translation | |||||||||||||
type TranslationError AlonzoEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||||||||||
type Rep (PlutusScript AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||||||||||
type Rep (TransitionConfig AlonzoEra) | |||||||||||||
Defined in Cardano.Ledger.Alonzo.Transition type Rep (TransitionConfig AlonzoEra) = D1 ('MetaData "TransitionConfig" "Cardano.Ledger.Alonzo.Transition" "cardano-ledger-alonzo-1.13.0.0-9ff70a6022825950aa0f3b65288cd2042ac89878164547aeaa83a457d4cf9781" 'False) (C1 ('MetaCons "AlonzoTransitionConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "atcAlonzoGenesis") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AlonzoGenesis) :*: S1 ('MetaSel ('Just "atcMaryTransitionConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TransitionConfig MaryEra)))) | |||||||||||||
type HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork | |||||||||||||
newtype CanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type HardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type TxMeasure (ShelleyBlock p AlonzoEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool |
data BabbageEra Source #
The Babbage era
Instances
BabbageEraPParams BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.PParams Methods hkdCoinsPerUTxOByteL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f BabbageEra) (HKD f CoinPerByte) Source # | |||||||||||||
BabbageEraTxBody BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxBody.Internal Methods sizedOutputsTxBodyL ∷ Lens' (TxBody BabbageEra) (StrictSeq (Sized (TxOut BabbageEra))) Source # referenceInputsTxBodyL ∷ Lens' (TxBody BabbageEra) (Set TxIn) Source # totalCollateralTxBodyL ∷ Lens' (TxBody BabbageEra) (StrictMaybe Coin) Source # collateralReturnTxBodyL ∷ Lens' (TxBody BabbageEra) (StrictMaybe (TxOut BabbageEra)) Source # sizedCollateralReturnTxBodyL ∷ Lens' (TxBody BabbageEra) (StrictMaybe (Sized (TxOut BabbageEra))) Source # allSizedOutputsTxBodyF ∷ SimpleGetter (TxBody BabbageEra) (StrictSeq (Sized (TxOut BabbageEra))) Source # | |||||||||||||
BabbageEraTxOut BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxOut Methods referenceScriptTxOutL ∷ Lens' (TxOut BabbageEra) (StrictMaybe (Script BabbageEra)) Source # dataTxOutL ∷ Lens' (TxOut BabbageEra) (StrictMaybe (Data BabbageEra)) Source # datumTxOutL ∷ Lens' (TxOut BabbageEra) (Datum BabbageEra) Source # | |||||||||||||
Era BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era Associated Types
| |||||||||||||
EraGenesis BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era Associated Types
| |||||||||||||
GetLedgerView BabbageEra | |||||||||||||
Defined in Cardano.Protocol.TPraos.API Methods currentLedgerView ∷ NewEpochState BabbageEra → LedgerView Source # futureLedgerView ∷ MonadError (FutureLedgerViewError BabbageEra) m ⇒ Globals → NewEpochState BabbageEra → SlotNo → m LedgerView Source # | |||||||||||||
ShelleyBasedEra BabbageEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv BabbageEra → LedgerState BabbageEra → WhetherToIntervene → Tx BabbageEra → Except (ApplyTxError BabbageEra) (LedgerState BabbageEra, Validated (Tx BabbageEra)) Source # getConwayEraGovDict ∷ proxy BabbageEra → Maybe (ConwayEraGovDict BabbageEra) Source # | |||||||||||||
TranslateEra BabbageEra Tx | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation Associated Types
Methods translateEra ∷ TranslationContext BabbageEra → Tx (PreviousEra BabbageEra) → Except (TranslationError BabbageEra Tx) (Tx BabbageEra) Source # | |||||||||||||
TranslateEra BabbageEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext BabbageEra → WrapTx (PreviousEra BabbageEra) → Except (TranslationError BabbageEra WrapTx) (WrapTx BabbageEra) Source # | |||||||||||||
InjectRuleFailure "UTXO" BabbageUtxoPredFailure BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxo Methods injectFailure ∷ BabbageUtxoPredFailure BabbageEra → EraRuleFailure "UTXO" BabbageEra Source # | |||||||||||||
InjectRuleFailure "UTXOW" BabbageUtxowPredFailure BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxow Methods injectFailure ∷ BabbageUtxowPredFailure BabbageEra → EraRuleFailure "UTXOW" BabbageEra Source # | |||||||||||||
Show (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods showsPrec ∷ Int → CanonicalTxIn (CardanoEras c) → ShowS # show ∷ CanonicalTxIn (CardanoEras c) → String # showList ∷ [CanonicalTxIn (CardanoEras c)] → ShowS # | |||||||||||||
Eq (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (/=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # | |||||||||||||
Ord (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Ordering # (<) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (<=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # max ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # min ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # | |||||||||||||
CardanoHardForkConstraints c ⇒ MemPack (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount ∷ CanonicalTxIn (CardanoEras c) → Int Source # packM ∷ CanonicalTxIn (CardanoEras c) → Pack s () Source # unpackM ∷ Buffer b ⇒ Unpack b (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
NoThunks (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CanonicalTxIn (CardanoEras c)) → String Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CanHardFork (CardanoEras c) Source # | When performing era translations, two eras have special behaviours on the ledger tables:
| ||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation ∷ EraTranslation (CardanoEras c) Source # hardForkChainSel ∷ Tails AcrossEraSelection (CardanoEras c) Source # hardForkInjectTxs ∷ InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure ∷ NS WrapTxMeasure (CardanoEras c) → HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CondenseConstraints (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Condense | |||||||||||||
CardanoHardForkConstraints c ⇒ HasCanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn ∷ Index (CardanoEras c) x → TxIn (LedgerState x) → CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn ∷ Index (CardanoEras c) x → CanonicalTxIn (CardanoEras c) → TxIn (LedgerState x) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ HasHardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut ∷ Index (CardanoEras c) x → TxOut (LedgerState x) → HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut ∷ Index (CardanoEras c) x → HardForkTxOut (CardanoEras c) → TxOut (LedgerState x) Source # txOutEjections ∷ NP ((K (NS WrapTxOut (CardanoEras c)) ∷ Type → Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations ∷ Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ BlockSupportsHFLedgerQuery (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFLookupTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # answerBlockQueryHFTraverse ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFTraverseTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # queryLedgerGetTraversingFilter ∷ Index (CardanoEras c) x → BlockQuery x 'QFTraverseTables result → TxOut (LedgerState (HardForkBlock (CardanoEras c))) → Bool Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerialiseHFC (CardanoEras c) Source # | Important: we need to maintain binary compatibility with Byron blocks, as they are already stored on disk. We also want to be able to efficiently detect (without having to peek far ahead) whether we're dealing with a Byron or Shelley block, so that we can invoke the right decoder. We plan to have a few more hard forks after Shelley (Goguen, Basho, Voltaire), so we want a future-proof envelope for distinguishing the different block types, i.e., a byte indicating the era. Byron does not provide such an envelope. However, a Byron block is a CBOR
2-tuple with the first element being a tag ( We encode a
For more details, see: https://github.com/IntersectMBO/ouroboros-network/pull/1175#issuecomment-558147194 | ||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → HardForkBlock (CardanoEras c) → Encoding Source # decodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → ∀ s. Decoder s (ByteString → HardForkBlock (CardanoEras c)) Source # reconstructHfcPrefixLen ∷ proxy (Header (HardForkBlock (CardanoEras c))) → PrefixLen Source # reconstructHfcNestedCtxt ∷ proxy (Header (HardForkBlock (CardanoEras c))) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo ∷ HardForkBlock (CardanoEras c) → BinaryBlockInfo Source # estimateHfcBlockSize ∷ Header (HardForkBlock (CardanoEras c)) → SizeInBytes Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) Source # | |||||||||||||
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 # | |||||||||||||
CardanoHardForkConstraints c ⇒ SupportedNetworkProtocolVersion (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions ∷ Proxy (CardanoBlock c) → Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions ∷ Proxy (CardanoBlock c) → Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion ∷ Proxy (CardanoBlock c) → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||
PraosCrypto c ⇒ ShelleyCompatible (Praos c) BabbageEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
(PraosCrypto c, PraosCrypto c) ⇒ ShelleyCompatible (TPraos c) BabbageEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
ShelleyCompatible p BabbageEra ⇒ TxLimits (ShelleyBlock p BabbageEra) Source # | We anachronistically use | ||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
Methods txMeasure ∷ LedgerConfig (ShelleyBlock p BabbageEra) → TickedLedgerState (ShelleyBlock p BabbageEra) ValuesMK → GenTx (ShelleyBlock p BabbageEra) → Except (ApplyTxErr (ShelleyBlock p BabbageEra)) (TxMeasure (ShelleyBlock p BabbageEra)) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig (ShelleyBlock p BabbageEra) → TickedLedgerState (ShelleyBlock p BabbageEra) mk → TxMeasure (ShelleyBlock p BabbageEra) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) Source # | |||||||||||||
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 ⇒ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → Unpack b (CardanoTxOut c) Source # indexedTypeName ∷ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → String Source # | |||||||||||||
type ContextError BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxInfo | |||||||||||||
data TxInfoResult BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxInfo | |||||||||||||
data PlutusScript BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Scripts data PlutusScript BabbageEra
| |||||||||||||
type CertState BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.CertState | |||||||||||||
type NativeScript BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Scripts | |||||||||||||
type Script BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Scripts | |||||||||||||
type Tx BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Tx | |||||||||||||
type TxAuxData BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxAuxData | |||||||||||||
type TxBody BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxBody.Internal | |||||||||||||
type TxBodyUpgradeError BabbageEra | |||||||||||||
type TxOut BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxOut | |||||||||||||
type TxSeq BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Tx | |||||||||||||
type TxUpgradeError BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Tx | |||||||||||||
type TxWits BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxWits | |||||||||||||
type Value BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type PreviousEra BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type ProtVerHigh BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type ProtVerLow BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type TranslationContext BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type TxCert BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxCert | |||||||||||||
type TxCertUpgradeError BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.TxCert | |||||||||||||
type Genesis BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type GovState BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.PParams | |||||||||||||
type InstantStake BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.State.Stake | |||||||||||||
type ScriptsNeeded BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.UTxO | |||||||||||||
newtype TransitionConfig BabbageEra | |||||||||||||
type PlutusPurpose f BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Scripts | |||||||||||||
type EraRule "BBODY" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "DELEG" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "DELEGS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "DELPL" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "EPOCH" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "LEDGER" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "LEDGERS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "MIR" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "NEWEPOCH" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "NEWPP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "POOL" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "POOLREAP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "PPUP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "RUPD" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "SNAP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "TICK" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "TICKF" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "UPEC" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "UTXO" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "UTXOS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRule "UTXOW" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Era | |||||||||||||
type EraRuleEvent "LEDGER" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules | |||||||||||||
type EraRuleEvent "PPUP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules | |||||||||||||
type EraRuleEvent "TICK" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules | |||||||||||||
type EraRuleEvent "UTXOS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxos | |||||||||||||
type EraRuleFailure "BBODY" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Bbody | |||||||||||||
type EraRuleFailure "DELEG" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Deleg | |||||||||||||
type EraRuleFailure "DELEGS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Delegs | |||||||||||||
type EraRuleFailure "DELPL" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Delpl | |||||||||||||
type EraRuleFailure "LEDGER" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Ledger | |||||||||||||
type EraRuleFailure "LEDGERS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Ledgers | |||||||||||||
type EraRuleFailure "POOL" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Pool | |||||||||||||
type EraRuleFailure "PPUP" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Ppup | |||||||||||||
type EraRuleFailure "UTXO" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxo | |||||||||||||
type EraRuleFailure "UTXOS" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxos | |||||||||||||
type EraRuleFailure "UTXOW" BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.Rules.Utxow | |||||||||||||
type DowngradePParams f BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.PParams | |||||||||||||
type PParamsHKD f BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.PParams | |||||||||||||
type UpgradePParams f BabbageEra | |||||||||||||
Defined in Cardano.Ledger.Babbage.PParams | |||||||||||||
type TranslationError BabbageEra Tx | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra CommitteeState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra DState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra PState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra VState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra PParams | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra FuturePParams | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra UTxO | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra ShelleyCertState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra ShelleyGovState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra EpochState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra LedgerState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra NewEpochState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra UTxOState | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra ProposedPPUpdates | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra ShelleyInstantStake | |||||||||||||
Defined in Cardano.Ledger.Babbage.Translation | |||||||||||||
type TranslationError BabbageEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||||||||||
type Rep (PlutusScript BabbageEra) | |||||||||||||
Defined in Cardano.Ledger.Babbage.Scripts type Rep (PlutusScript BabbageEra) = D1 ('MetaData "PlutusScript" "Cardano.Ledger.Babbage.Scripts" "cardano-ledger-babbage-1.11.0.0-71775786a1c987e6b6ddd2b227d666b2d88b45e6fbdd66f39e13826a0894e9c7" 'False) (C1 ('MetaCons "BabbagePlutusV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV1))) :+: C1 ('MetaCons "BabbagePlutusV2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV2)))) | |||||||||||||
type HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork | |||||||||||||
newtype CanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type HardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type TxMeasure (ShelleyBlock p BabbageEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool |
The Conway era
Instances
ConwayEraGov ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Governance Methods constitutionGovStateL ∷ Lens' (GovState ConwayEra) (Constitution ConwayEra) Source # proposalsGovStateL ∷ Lens' (GovState ConwayEra) (Proposals ConwayEra) Source # drepPulsingStateGovStateL ∷ Lens' (GovState ConwayEra) (DRepPulsingState ConwayEra) Source # committeeGovStateL ∷ Lens' (GovState ConwayEra) (StrictMaybe (Committee ConwayEra)) Source # | |||||||||||||
ConwayEraPParams ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.PParams Methods modifiedPPGroups ∷ PParamsUpdate ConwayEra → Set PPGroups Source # ppuWellFormed ∷ ProtVer → PParamsUpdate ConwayEra → Bool Source # hkdPoolVotingThresholdsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f PoolVotingThresholds) Source # hkdDRepVotingThresholdsL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f DRepVotingThresholds) Source # hkdCommitteeMinSizeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f Natural) Source # hkdCommitteeMaxTermLengthL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f EpochInterval) Source # hkdGovActionLifetimeL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f EpochInterval) Source # hkdGovActionDepositL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f Coin) Source # hkdDRepDepositL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f Coin) Source # hkdDRepActivityL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f EpochInterval) Source # hkdMinFeeRefScriptCostPerByteL ∷ ∀ (f ∷ Type → Type). HKDFunctor f ⇒ Lens' (PParamsHKD f ConwayEra) (HKD f NonNegativeInterval) Source # | |||||||||||||
ConwayEraScript ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts Methods mkVotingPurpose ∷ f Word32 Voter → PlutusPurpose f ConwayEra Source # toVotingPurpose ∷ PlutusPurpose f ConwayEra → Maybe (f Word32 Voter) Source # mkProposingPurpose ∷ f Word32 (ProposalProcedure ConwayEra) → PlutusPurpose f ConwayEra Source # toProposingPurpose ∷ PlutusPurpose f ConwayEra → Maybe (f Word32 (ProposalProcedure ConwayEra)) Source # | |||||||||||||
ConwayEraTransition ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Transition | |||||||||||||
ConwayEraTxBody ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxBody.Internal Methods currentTreasuryValueTxBodyL ∷ Lens' (TxBody ConwayEra) (StrictMaybe Coin) Source # votingProceduresTxBodyL ∷ Lens' (TxBody ConwayEra) (VotingProcedures ConwayEra) Source # proposalProceduresTxBodyL ∷ Lens' (TxBody ConwayEra) (OSet (ProposalProcedure ConwayEra)) Source # treasuryDonationTxBodyL ∷ Lens' (TxBody ConwayEra) Coin Source # | |||||||||||||
ConwayEraTxCert ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxCert Methods mkRegDepositTxCert ∷ StakeCredential → Coin → TxCert ConwayEra Source # getRegDepositTxCert ∷ TxCert ConwayEra → Maybe (StakeCredential, Coin) Source # mkUnRegDepositTxCert ∷ StakeCredential → Coin → TxCert ConwayEra Source # getUnRegDepositTxCert ∷ TxCert ConwayEra → Maybe (StakeCredential, Coin) Source # mkDelegTxCert ∷ StakeCredential → Delegatee → TxCert ConwayEra Source # getDelegTxCert ∷ TxCert ConwayEra → Maybe (StakeCredential, Delegatee) Source # mkRegDepositDelegTxCert ∷ StakeCredential → Delegatee → Coin → TxCert ConwayEra Source # getRegDepositDelegTxCert ∷ TxCert ConwayEra → Maybe (StakeCredential, Delegatee, Coin) Source # mkAuthCommitteeHotKeyTxCert ∷ Credential 'ColdCommitteeRole → Credential 'HotCommitteeRole → TxCert ConwayEra Source # getAuthCommitteeHotKeyTxCert ∷ TxCert ConwayEra → Maybe (Credential 'ColdCommitteeRole, Credential 'HotCommitteeRole) Source # mkResignCommitteeColdTxCert ∷ Credential 'ColdCommitteeRole → StrictMaybe Anchor → TxCert ConwayEra Source # getResignCommitteeColdTxCert ∷ TxCert ConwayEra → Maybe (Credential 'ColdCommitteeRole, StrictMaybe Anchor) Source # mkRegDRepTxCert ∷ Credential 'DRepRole → Coin → StrictMaybe Anchor → TxCert ConwayEra Source # getRegDRepTxCert ∷ TxCert ConwayEra → Maybe (Credential 'DRepRole, Coin, StrictMaybe Anchor) Source # mkUnRegDRepTxCert ∷ Credential 'DRepRole → Coin → TxCert ConwayEra Source # getUnRegDRepTxCert ∷ TxCert ConwayEra → Maybe (Credential 'DRepRole, Coin) Source # mkUpdateDRepTxCert ∷ Credential 'DRepRole → StrictMaybe Anchor → TxCert ConwayEra Source # getUpdateDRepTxCert ∷ TxCert ConwayEra → Maybe (Credential 'DRepRole, StrictMaybe Anchor) Source # | |||||||||||||
Era ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era Associated Types
| |||||||||||||
GetLedgerView ConwayEra | |||||||||||||
Defined in Cardano.Protocol.TPraos.API Methods currentLedgerView ∷ NewEpochState ConwayEra → LedgerView Source # futureLedgerView ∷ MonadError (FutureLedgerViewError ConwayEra) m ⇒ Globals → NewEpochState ConwayEra → SlotNo → m LedgerView Source # | |||||||||||||
ShelleyBasedEra ConwayEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv ConwayEra → LedgerState ConwayEra → WhetherToIntervene → Tx ConwayEra → Except (ApplyTxError ConwayEra) (LedgerState ConwayEra, Validated (Tx ConwayEra)) Source # getConwayEraGovDict ∷ proxy ConwayEra → Maybe (ConwayEraGovDict ConwayEra) Source # | |||||||||||||
TranslateEra ConwayEra Tx | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation Associated Types
Methods translateEra ∷ TranslationContext ConwayEra → Tx (PreviousEra ConwayEra) → Except (TranslationError ConwayEra Tx) (Tx ConwayEra) Source # | |||||||||||||
TranslateEra ConwayEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext ConwayEra → WrapTx (PreviousEra ConwayEra) → Except (TranslationError ConwayEra WrapTx) (WrapTx ConwayEra) Source # | |||||||||||||
InjectRuleEvent "UTXOS" ConwayUtxosEvent ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxos Methods injectEvent ∷ ConwayUtxosEvent ConwayEra → EraRuleEvent "UTXOS" ConwayEra Source # | |||||||||||||
InjectRuleFailure "BBODY" ConwayBbodyPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Bbody Methods injectFailure ∷ ConwayBbodyPredFailure ConwayEra → EraRuleFailure "BBODY" ConwayEra Source # | |||||||||||||
InjectRuleFailure "CERT" ConwayCertPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Cert Methods injectFailure ∷ ConwayCertPredFailure ConwayEra → EraRuleFailure "CERT" ConwayEra Source # | |||||||||||||
InjectRuleFailure "CERTS" ConwayCertsPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Certs Methods injectFailure ∷ ConwayCertsPredFailure ConwayEra → EraRuleFailure "CERTS" ConwayEra Source # | |||||||||||||
InjectRuleFailure "DELEG" ConwayDelegPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Deleg Methods injectFailure ∷ ConwayDelegPredFailure ConwayEra → EraRuleFailure "DELEG" ConwayEra Source # | |||||||||||||
InjectRuleFailure "GOV" ConwayGovPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Gov Methods injectFailure ∷ ConwayGovPredFailure ConwayEra → EraRuleFailure "GOV" ConwayEra Source # | |||||||||||||
InjectRuleFailure "GOVCERT" ConwayGovCertPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.GovCert Methods injectFailure ∷ ConwayGovCertPredFailure ConwayEra → EraRuleFailure "GOVCERT" ConwayEra Source # | |||||||||||||
InjectRuleFailure "LEDGER" ConwayLedgerPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Ledger Methods injectFailure ∷ ConwayLedgerPredFailure ConwayEra → EraRuleFailure "LEDGER" ConwayEra Source # | |||||||||||||
InjectRuleFailure "UTXO" ConwayUtxoPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxo Methods injectFailure ∷ ConwayUtxoPredFailure ConwayEra → EraRuleFailure "UTXO" ConwayEra Source # | |||||||||||||
InjectRuleFailure "UTXOS" ConwayUtxosPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxos Methods injectFailure ∷ ConwayUtxosPredFailure ConwayEra → EraRuleFailure "UTXOS" ConwayEra Source # | |||||||||||||
InjectRuleFailure "UTXOW" ConwayUtxowPredFailure ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxow Methods injectFailure ∷ ConwayUtxowPredFailure ConwayEra → EraRuleFailure "UTXOW" ConwayEra Source # | |||||||||||||
Show (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods showsPrec ∷ Int → CanonicalTxIn (CardanoEras c) → ShowS # show ∷ CanonicalTxIn (CardanoEras c) → String # showList ∷ [CanonicalTxIn (CardanoEras c)] → ShowS # | |||||||||||||
Eq (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (/=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # | |||||||||||||
Ord (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Ordering # (<) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (<=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # max ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # min ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # | |||||||||||||
CardanoHardForkConstraints c ⇒ MemPack (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount ∷ CanonicalTxIn (CardanoEras c) → Int Source # packM ∷ CanonicalTxIn (CardanoEras c) → Pack s () Source # unpackM ∷ Buffer b ⇒ Unpack b (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
NoThunks (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CanonicalTxIn (CardanoEras c)) → String Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CanHardFork (CardanoEras c) Source # | When performing era translations, two eras have special behaviours on the ledger tables:
| ||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation ∷ EraTranslation (CardanoEras c) Source # hardForkChainSel ∷ Tails AcrossEraSelection (CardanoEras c) Source # hardForkInjectTxs ∷ InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure ∷ NS WrapTxMeasure (CardanoEras c) → HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CondenseConstraints (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Condense | |||||||||||||
CardanoHardForkConstraints c ⇒ HasCanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn ∷ Index (CardanoEras c) x → TxIn (LedgerState x) → CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn ∷ Index (CardanoEras c) x → CanonicalTxIn (CardanoEras c) → TxIn (LedgerState x) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ HasHardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut ∷ Index (CardanoEras c) x → TxOut (LedgerState x) → HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut ∷ Index (CardanoEras c) x → HardForkTxOut (CardanoEras c) → TxOut (LedgerState x) Source # txOutEjections ∷ NP ((K (NS WrapTxOut (CardanoEras c)) ∷ Type → Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations ∷ Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ BlockSupportsHFLedgerQuery (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFLookupTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # answerBlockQueryHFTraverse ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFTraverseTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # queryLedgerGetTraversingFilter ∷ Index (CardanoEras c) x → BlockQuery x 'QFTraverseTables result → TxOut (LedgerState (HardForkBlock (CardanoEras c))) → Bool Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerialiseHFC (CardanoEras c) Source # | Important: we need to maintain binary compatibility with Byron blocks, as they are already stored on disk. We also want to be able to efficiently detect (without having to peek far ahead) whether we're dealing with a Byron or Shelley block, so that we can invoke the right decoder. We plan to have a few more hard forks after Shelley (Goguen, Basho, Voltaire), so we want a future-proof envelope for distinguishing the different block types, i.e., a byte indicating the era. Byron does not provide such an envelope. However, a Byron block is a CBOR
2-tuple with the first element being a tag ( We encode a
For more details, see: https://github.com/IntersectMBO/ouroboros-network/pull/1175#issuecomment-558147194 | ||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → HardForkBlock (CardanoEras c) → Encoding Source # decodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → ∀ s. Decoder s (ByteString → HardForkBlock (CardanoEras c)) Source # reconstructHfcPrefixLen ∷ proxy (Header (HardForkBlock (CardanoEras c))) → PrefixLen Source # reconstructHfcNestedCtxt ∷ proxy (Header (HardForkBlock (CardanoEras c))) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo ∷ HardForkBlock (CardanoEras c) → BinaryBlockInfo Source # estimateHfcBlockSize ∷ Header (HardForkBlock (CardanoEras c)) → SizeInBytes Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) Source # | |||||||||||||
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 # | |||||||||||||
CardanoHardForkConstraints c ⇒ SupportedNetworkProtocolVersion (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions ∷ Proxy (CardanoBlock c) → Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions ∷ Proxy (CardanoBlock c) → Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion ∷ Proxy (CardanoBlock c) → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||
PraosCrypto c ⇒ ShelleyCompatible (Praos c) ConwayEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
(PraosCrypto c, PraosCrypto c) ⇒ ShelleyCompatible (TPraos c) ConwayEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
ToJSON (ConwayPParams Identity ConwayEra) | |||||||||||||
Defined in Cardano.Ledger.Conway.PParams Methods toJSON ∷ ConwayPParams Identity ConwayEra → Value Source # toEncoding ∷ ConwayPParams Identity ConwayEra → Encoding Source # toJSONList ∷ [ConwayPParams Identity ConwayEra] → Value Source # toEncodingList ∷ [ConwayPParams Identity ConwayEra] → Encoding Source # omitField ∷ ConwayPParams Identity ConwayEra → Bool Source # | |||||||||||||
ShelleyCompatible p ConwayEra ⇒ TxLimits (ShelleyBlock p ConwayEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
Methods txMeasure ∷ LedgerConfig (ShelleyBlock p ConwayEra) → TickedLedgerState (ShelleyBlock p ConwayEra) ValuesMK → GenTx (ShelleyBlock p ConwayEra) → Except (ApplyTxErr (ShelleyBlock p ConwayEra)) (TxMeasure (ShelleyBlock p ConwayEra)) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig (ShelleyBlock p ConwayEra) → TickedLedgerState (ShelleyBlock p ConwayEra) mk → TxMeasure (ShelleyBlock p ConwayEra) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) Source # | |||||||||||||
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 ⇒ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → Unpack b (CardanoTxOut c) Source # indexedTypeName ∷ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → String Source # | |||||||||||||
type ContextError ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxInfo | |||||||||||||
data TxInfoResult ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxInfo data TxInfoResult ConwayEra = ConwayTxInfoResult (Either (ContextError ConwayEra) (PlutusTxInfo 'PlutusV1)) (Either (ContextError ConwayEra) (PlutusTxInfo 'PlutusV2)) (Either (ContextError ConwayEra) (PlutusTxInfo 'PlutusV3)) | |||||||||||||
data PlutusScript ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts data PlutusScript ConwayEra
| |||||||||||||
type CertState ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.CertState | |||||||||||||
type NativeScript ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts | |||||||||||||
type Script ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts | |||||||||||||
type Tx ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Tx | |||||||||||||
type TxAuxData ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxAuxData | |||||||||||||
type TxBody ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxBody.Internal | |||||||||||||
type TxBodyUpgradeError ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxBody.Internal | |||||||||||||
type TxOut ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxOut | |||||||||||||
type TxSeq ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Tx | |||||||||||||
type TxUpgradeError ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Tx | |||||||||||||
type TxWits ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxWits | |||||||||||||
type Value ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type PreviousEra ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type ProtVerHigh ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type ProtVerLow ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type TranslationContext ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TxCert ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxCert | |||||||||||||
type TxCertUpgradeError ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.TxCert | |||||||||||||
type Genesis ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Genesis | |||||||||||||
type GovState ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Governance | |||||||||||||
type InstantStake ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.State.Stake | |||||||||||||
type ScriptsNeeded ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.UTxO | |||||||||||||
data TransitionConfig ConwayEra | |||||||||||||
type PlutusPurpose f ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts | |||||||||||||
type EraRule "BBODY" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "CERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "CERTS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "DELEG" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "DELEGS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "ENACT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "EPOCH" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "GOV" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "GOVCERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "HARDFORK" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "LEDGER" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "LEDGERS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "MEMPOOL" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "MIR" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "NEWEPOCH" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "NEWPP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "POOL" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "POOLREAP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "PPUP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "RATIFY" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "RUPD" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "SNAP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "TICK" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "TICKF" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "UPEC" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "UTXO" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "UTXOS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRule "UTXOW" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "BBODY" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Bbody | |||||||||||||
type EraRuleEvent "CERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Cert | |||||||||||||
type EraRuleEvent "CERTS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Certs | |||||||||||||
type EraRuleEvent "DELEG" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Deleg | |||||||||||||
type EraRuleEvent "DELEGS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "ENACT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Enact | |||||||||||||
type EraRuleEvent "EPOCH" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Epoch | |||||||||||||
type EraRuleEvent "GOV" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Gov | |||||||||||||
type EraRuleEvent "GOVCERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.GovCert | |||||||||||||
type EraRuleEvent "HARDFORK" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.HardFork | |||||||||||||
type EraRuleEvent "LEDGER" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Ledger | |||||||||||||
type EraRuleEvent "LEDGERS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Ledgers | |||||||||||||
type EraRuleEvent "MIR" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "NEWEPOCH" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.NewEpoch | |||||||||||||
type EraRuleEvent "NEWPP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "POOL" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Pool | |||||||||||||
type EraRuleEvent "PPUP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "TICK" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules | |||||||||||||
type EraRuleEvent "UPEC" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleEvent "UTXO" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxo | |||||||||||||
type EraRuleEvent "UTXOS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxos | |||||||||||||
type EraRuleEvent "UTXOW" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxow | |||||||||||||
type EraRuleFailure "BBODY" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Bbody | |||||||||||||
type EraRuleFailure "CERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Cert | |||||||||||||
type EraRuleFailure "CERTS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Certs | |||||||||||||
type EraRuleFailure "DELEG" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Deleg | |||||||||||||
type EraRuleFailure "DELEGS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleFailure "GOV" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Gov | |||||||||||||
type EraRuleFailure "GOVCERT" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.GovCert | |||||||||||||
type EraRuleFailure "LEDGER" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Ledger | |||||||||||||
type EraRuleFailure "LEDGERS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Ledgers | |||||||||||||
type EraRuleFailure "MIR" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleFailure "NEWPP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleFailure "POOL" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Pool | |||||||||||||
type EraRuleFailure "PPUP" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleFailure "UPEC" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Era | |||||||||||||
type EraRuleFailure "UTXO" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxo | |||||||||||||
type EraRuleFailure "UTXOS" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxos | |||||||||||||
type EraRuleFailure "UTXOW" ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.Rules.Utxow | |||||||||||||
type DowngradePParams f ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.PParams | |||||||||||||
type PParamsHKD f ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.PParams | |||||||||||||
type UpgradePParams f ConwayEra | |||||||||||||
Defined in Cardano.Ledger.Conway.PParams | |||||||||||||
type TranslationError ConwayEra Tx | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra DState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra PState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra PParams | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra FuturePParams | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra UTxO | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra EpochState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra LedgerState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra NewEpochState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra UTxOState | |||||||||||||
Defined in Cardano.Ledger.Conway.Translation | |||||||||||||
type TranslationError ConwayEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||||||||||
type Rep (PlutusScript ConwayEra) | |||||||||||||
Defined in Cardano.Ledger.Conway.Scripts type Rep (PlutusScript ConwayEra) = D1 ('MetaData "PlutusScript" "Cardano.Ledger.Conway.Scripts" "cardano-ledger-conway-1.19.0.0-5d525ce7f59820fe1f42b80ac2f7d5e16f0b49f6c4b9aff4af277acbb6550303" 'False) (C1 ('MetaCons "ConwayPlutusV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV1))) :+: (C1 ('MetaCons "ConwayPlutusV2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV2))) :+: C1 ('MetaCons "ConwayPlutusV3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV3))))) | |||||||||||||
type Rep (TransitionConfig ConwayEra) | |||||||||||||
Defined in Cardano.Ledger.Conway.Transition type Rep (TransitionConfig ConwayEra) = D1 ('MetaData "TransitionConfig" "Cardano.Ledger.Conway.Transition" "cardano-ledger-conway-1.19.0.0-5d525ce7f59820fe1f42b80ac2f7d5e16f0b49f6c4b9aff4af277acbb6550303" 'False) (C1 ('MetaCons "ConwayTransitionConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "ctcConwayGenesis") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ConwayGenesis) :*: S1 ('MetaSel ('Just "ctcBabbageTransitionConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TransitionConfig BabbageEra)))) | |||||||||||||
type HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork | |||||||||||||
newtype CanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type HardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type TxMeasure (ShelleyBlock p ConwayEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool |
Instances
Era MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era Associated Types
| |||||||||||||
EraGenesis MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
MaryEraTxBody MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxBody.Internal Methods mintTxBodyL ∷ Lens' (TxBody MaryEra) MultiAsset Source # mintValueTxBodyF ∷ SimpleGetter (TxBody MaryEra) (Value MaryEra) Source # mintedTxBodyF ∷ SimpleGetter (TxBody MaryEra) (Set PolicyID) Source # | |||||||||||||
GetLedgerView MaryEra | |||||||||||||
Defined in Cardano.Protocol.TPraos.API Methods currentLedgerView ∷ NewEpochState MaryEra → LedgerView Source # futureLedgerView ∷ MonadError (FutureLedgerViewError MaryEra) m ⇒ Globals → NewEpochState MaryEra → SlotNo → m LedgerView Source # | |||||||||||||
ShelleyBasedEra MaryEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv MaryEra → LedgerState MaryEra → WhetherToIntervene → Tx MaryEra → Except (ApplyTxError MaryEra) (LedgerState MaryEra, Validated (Tx MaryEra)) Source # getConwayEraGovDict ∷ proxy MaryEra → Maybe (ConwayEraGovDict MaryEra) Source # | |||||||||||||
TranslateEra MaryEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext MaryEra → WrapTx (PreviousEra MaryEra) → Except (TranslationError MaryEra WrapTx) (WrapTx MaryEra) Source # | |||||||||||||
Show (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods showsPrec ∷ Int → CanonicalTxIn (CardanoEras c) → ShowS # show ∷ CanonicalTxIn (CardanoEras c) → String # showList ∷ [CanonicalTxIn (CardanoEras c)] → ShowS # | |||||||||||||
Eq (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (/=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # | |||||||||||||
Ord (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Ordering # (<) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (<=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # max ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # min ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # | |||||||||||||
CardanoHardForkConstraints c ⇒ MemPack (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount ∷ CanonicalTxIn (CardanoEras c) → Int Source # packM ∷ CanonicalTxIn (CardanoEras c) → Pack s () Source # unpackM ∷ Buffer b ⇒ Unpack b (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
NoThunks (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CanonicalTxIn (CardanoEras c)) → String Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CanHardFork (CardanoEras c) Source # | When performing era translations, two eras have special behaviours on the ledger tables:
| ||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation ∷ EraTranslation (CardanoEras c) Source # hardForkChainSel ∷ Tails AcrossEraSelection (CardanoEras c) Source # hardForkInjectTxs ∷ InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure ∷ NS WrapTxMeasure (CardanoEras c) → HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CondenseConstraints (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Condense | |||||||||||||
CardanoHardForkConstraints c ⇒ HasCanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn ∷ Index (CardanoEras c) x → TxIn (LedgerState x) → CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn ∷ Index (CardanoEras c) x → CanonicalTxIn (CardanoEras c) → TxIn (LedgerState x) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ HasHardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut ∷ Index (CardanoEras c) x → TxOut (LedgerState x) → HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut ∷ Index (CardanoEras c) x → HardForkTxOut (CardanoEras c) → TxOut (LedgerState x) Source # txOutEjections ∷ NP ((K (NS WrapTxOut (CardanoEras c)) ∷ Type → Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations ∷ Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ BlockSupportsHFLedgerQuery (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFLookupTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # answerBlockQueryHFTraverse ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFTraverseTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # queryLedgerGetTraversingFilter ∷ Index (CardanoEras c) x → BlockQuery x 'QFTraverseTables result → TxOut (LedgerState (HardForkBlock (CardanoEras c))) → Bool Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerialiseHFC (CardanoEras c) Source # | Important: we need to maintain binary compatibility with Byron blocks, as they are already stored on disk. We also want to be able to efficiently detect (without having to peek far ahead) whether we're dealing with a Byron or Shelley block, so that we can invoke the right decoder. We plan to have a few more hard forks after Shelley (Goguen, Basho, Voltaire), so we want a future-proof envelope for distinguishing the different block types, i.e., a byte indicating the era. Byron does not provide such an envelope. However, a Byron block is a CBOR
2-tuple with the first element being a tag ( We encode a
For more details, see: https://github.com/IntersectMBO/ouroboros-network/pull/1175#issuecomment-558147194 | ||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → HardForkBlock (CardanoEras c) → Encoding Source # decodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → ∀ s. Decoder s (ByteString → HardForkBlock (CardanoEras c)) Source # reconstructHfcPrefixLen ∷ proxy (Header (HardForkBlock (CardanoEras c))) → PrefixLen Source # reconstructHfcNestedCtxt ∷ proxy (Header (HardForkBlock (CardanoEras c))) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo ∷ HardForkBlock (CardanoEras c) → BinaryBlockInfo Source # estimateHfcBlockSize ∷ Header (HardForkBlock (CardanoEras c)) → SizeInBytes Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) Source # | |||||||||||||
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 # | |||||||||||||
CardanoHardForkConstraints c ⇒ SupportedNetworkProtocolVersion (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions ∷ Proxy (CardanoBlock c) → Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions ∷ Proxy (CardanoBlock c) → Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion ∷ Proxy (CardanoBlock c) → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||
PraosCrypto c ⇒ ShelleyCompatible (TPraos c) MaryEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
ShelleyCompatible p MaryEra ⇒ TxLimits (ShelleyBlock p MaryEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
Methods txMeasure ∷ LedgerConfig (ShelleyBlock p MaryEra) → TickedLedgerState (ShelleyBlock p MaryEra) ValuesMK → GenTx (ShelleyBlock p MaryEra) → Except (ApplyTxErr (ShelleyBlock p MaryEra)) (TxMeasure (ShelleyBlock p MaryEra)) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig (ShelleyBlock p MaryEra) → TickedLedgerState (ShelleyBlock p MaryEra) mk → TxMeasure (ShelleyBlock p MaryEra) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) Source # | |||||||||||||
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 ⇒ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → Unpack b (CardanoTxOut c) Source # indexedTypeName ∷ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → String Source # | |||||||||||||
type CertState MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.CertState | |||||||||||||
type NativeScript MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Scripts | |||||||||||||
type Script MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Scripts | |||||||||||||
type Tx MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Tx | |||||||||||||
type TxAuxData MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxAuxData | |||||||||||||
type TxBody MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxBody.Internal | |||||||||||||
type TxBodyUpgradeError MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxBody.Internal | |||||||||||||
type TxOut MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxOut | |||||||||||||
type TxSeq MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxSeq | |||||||||||||
type TxUpgradeError MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Tx | |||||||||||||
type TxWits MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxWits | |||||||||||||
type Value MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type PreviousEra MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type ProtVerHigh MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type ProtVerLow MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type TranslationContext MaryEra | No context is needed to translate from Allegra to Mary. | ||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type TxCert MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxCert | |||||||||||||
type TxCertUpgradeError MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.TxCert | |||||||||||||
type Genesis MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type GovState MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.PParams | |||||||||||||
type InstantStake MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.State.Stake | |||||||||||||
type ScriptsNeeded MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.UTxO | |||||||||||||
newtype TransitionConfig MaryEra | |||||||||||||
type EraRule "BBODY" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "DELEG" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "DELEGS" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "DELPL" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "EPOCH" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "LEDGER" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "LEDGERS" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "MIR" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "NEWEPOCH" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "NEWPP" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "POOL" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "POOLREAP" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "PPUP" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "RUPD" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "SNAP" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "TICK" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "TICKF" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "UPEC" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "UTXO" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRule "UTXOW" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Era | |||||||||||||
type EraRuleEvent "LEDGER" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Ledger | |||||||||||||
type EraRuleEvent "TICK" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules | |||||||||||||
type EraRuleFailure "BBODY" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Bbody | |||||||||||||
type EraRuleFailure "DELEG" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Deleg | |||||||||||||
type EraRuleFailure "DELEGS" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Delegs | |||||||||||||
type EraRuleFailure "DELPL" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Delpl | |||||||||||||
type EraRuleFailure "LEDGER" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Ledger | |||||||||||||
type EraRuleFailure "LEDGERS" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Ledgers | |||||||||||||
type EraRuleFailure "POOL" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Pool | |||||||||||||
type EraRuleFailure "PPUP" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Ppup | |||||||||||||
type EraRuleFailure "UTXO" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Utxo | |||||||||||||
type EraRuleFailure "UTXOW" MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.Rules.Utxow | |||||||||||||
type DowngradePParams f MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.PParams | |||||||||||||
type PParamsHKD f MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.PParams | |||||||||||||
type UpgradePParams f MaryEra | |||||||||||||
Defined in Cardano.Ledger.Mary.PParams | |||||||||||||
type TranslationError MaryEra AllegraTxAuxData | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra CommitteeState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra DState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra PState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra VState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra PParams | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra PParamsUpdate | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra FuturePParams | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra UTxO | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyCertState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyGovState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra EpochState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra LedgerState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra NewEpochState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra UTxOState | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ProposedPPUpdates | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra Update | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyInstantStake | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyTx | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyTxOut | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra ShelleyTxWits | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type TranslationError MaryEra WrapTx Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||||||||||
type TranslationError MaryEra (Timelock ∷ Type → Type) | |||||||||||||
Defined in Cardano.Ledger.Mary.Translation | |||||||||||||
type HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork | |||||||||||||
newtype CanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type HardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type TxMeasure (ShelleyBlock p MaryEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool |
data ShelleyEra Source #
Instances
Era ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era Associated Types
| |||||||||||||
ApplyTx ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.API.Mempool Methods applyTxValidation ∷ ValidationPolicy → Globals → MempoolEnv ShelleyEra → MempoolState ShelleyEra → Tx ShelleyEra → Either (ApplyTxError ShelleyEra) (MempoolState ShelleyEra, Validated (Tx ShelleyEra)) Source # | |||||||||||||
ApplyBlock ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.API.Validation Methods applyBlock ∷ ∀ (ep ∷ EventPolicy). SingEP ep → ValidationPolicy → Globals → NewEpochState ShelleyEra → Block BHeaderView ShelleyEra → (NewEpochState ShelleyEra, [PredicateFailure (EraRule "BBODY" ShelleyEra)], [Event (EraRule "BBODY" ShelleyEra)]) Source # applyTick ∷ ∀ (ep ∷ EventPolicy). SingEP ep → Globals → NewEpochState ShelleyEra → SlotNo → (NewEpochState ShelleyEra, [Event (EraRule "TICK" ShelleyEra)]) Source # | |||||||||||||
ShelleyEraScript ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Scripts Methods mkRequireSignature ∷ KeyHash 'Witness → NativeScript ShelleyEra Source # getRequireSignature ∷ NativeScript ShelleyEra → Maybe (KeyHash 'Witness) Source # mkRequireAllOf ∷ StrictSeq (NativeScript ShelleyEra) → NativeScript ShelleyEra Source # getRequireAllOf ∷ NativeScript ShelleyEra → Maybe (StrictSeq (NativeScript ShelleyEra)) Source # mkRequireAnyOf ∷ StrictSeq (NativeScript ShelleyEra) → NativeScript ShelleyEra Source # getRequireAnyOf ∷ NativeScript ShelleyEra → Maybe (StrictSeq (NativeScript ShelleyEra)) Source # mkRequireMOf ∷ Int → StrictSeq (NativeScript ShelleyEra) → NativeScript ShelleyEra Source # getRequireMOf ∷ NativeScript ShelleyEra → Maybe (Int, StrictSeq (NativeScript ShelleyEra)) Source # | |||||||||||||
EraTransition ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Associated Types
Methods mkTransitionConfig ∷ TranslationContext ShelleyEra → TransitionConfig (PreviousEra ShelleyEra) → TransitionConfig ShelleyEra Source # injectIntoTestState ∷ TransitionConfig ShelleyEra → NewEpochState ShelleyEra → NewEpochState ShelleyEra Source # tcPreviousEraConfigL ∷ Lens' (TransitionConfig ShelleyEra) (TransitionConfig (PreviousEra ShelleyEra)) Source # tcTranslationContextL ∷ Lens' (TransitionConfig ShelleyEra) (TranslationContext ShelleyEra) Source # tcShelleyGenesisL ∷ Lens' (TransitionConfig ShelleyEra) ShelleyGenesis Source # tcInitialPParamsG ∷ SimpleGetter (TransitionConfig ShelleyEra) (PParams ShelleyEra) Source # | |||||||||||||
ShelleyEraTxBody ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxBody Methods ttlTxBodyL ∷ Lens' (TxBody ShelleyEra) SlotNo Source # updateTxBodyL ∷ Lens' (TxBody ShelleyEra) (StrictMaybe (Update ShelleyEra)) Source # | |||||||||||||
ShelleyEraTxCert ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxCert Methods mkRegTxCert ∷ StakeCredential → TxCert ShelleyEra Source # getRegTxCert ∷ TxCert ShelleyEra → Maybe StakeCredential Source # mkUnRegTxCert ∷ StakeCredential → TxCert ShelleyEra Source # getUnRegTxCert ∷ TxCert ShelleyEra → Maybe StakeCredential Source # mkDelegStakeTxCert ∷ StakeCredential → KeyHash 'StakePool → TxCert ShelleyEra Source # getDelegStakeTxCert ∷ TxCert ShelleyEra → Maybe (StakeCredential, KeyHash 'StakePool) Source # mkGenesisDelegTxCert ∷ GenesisDelegCert → TxCert ShelleyEra Source # getGenesisDelegTxCert ∷ TxCert ShelleyEra → Maybe GenesisDelegCert Source # | |||||||||||||
GetLedgerView ShelleyEra | |||||||||||||
Defined in Cardano.Protocol.TPraos.API Methods currentLedgerView ∷ NewEpochState ShelleyEra → LedgerView Source # futureLedgerView ∷ MonadError (FutureLedgerViewError ShelleyEra) m ⇒ Globals → NewEpochState ShelleyEra → SlotNo → m LedgerView Source # | |||||||||||||
ShelleyBasedEra ShelleyEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv ShelleyEra → LedgerState ShelleyEra → WhetherToIntervene → Tx ShelleyEra → Except (ApplyTxError ShelleyEra) (LedgerState ShelleyEra, Validated (Tx ShelleyEra)) Source # getConwayEraGovDict ∷ proxy ShelleyEra → Maybe (ConwayEraGovDict ShelleyEra) Source # | |||||||||||||
InjectRuleFailure "BBODY" ShelleyBbodyPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Bbody Methods injectFailure ∷ ShelleyBbodyPredFailure ShelleyEra → EraRuleFailure "BBODY" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "DELEG" ShelleyDelegPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Deleg Methods injectFailure ∷ ShelleyDelegPredFailure ShelleyEra → EraRuleFailure "DELEG" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "DELEGS" ShelleyDelegsPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Delegs Methods injectFailure ∷ ShelleyDelegsPredFailure ShelleyEra → EraRuleFailure "DELEGS" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "DELPL" ShelleyDelplPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Delpl Methods injectFailure ∷ ShelleyDelplPredFailure ShelleyEra → EraRuleFailure "DELPL" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "LEDGER" ShelleyLedgerPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledger Methods injectFailure ∷ ShelleyLedgerPredFailure ShelleyEra → EraRuleFailure "LEDGER" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "LEDGERS" ShelleyLedgersPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledgers Methods injectFailure ∷ ShelleyLedgersPredFailure ShelleyEra → EraRuleFailure "LEDGERS" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "POOL" ShelleyPoolPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Pool Methods injectFailure ∷ ShelleyPoolPredFailure ShelleyEra → EraRuleFailure "POOL" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "PPUP" ShelleyPpupPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ppup Methods injectFailure ∷ ShelleyPpupPredFailure ShelleyEra → EraRuleFailure "PPUP" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "UTXO" ShelleyUtxoPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Utxo Methods injectFailure ∷ ShelleyUtxoPredFailure ShelleyEra → EraRuleFailure "UTXO" ShelleyEra Source # | |||||||||||||
InjectRuleFailure "UTXOW" ShelleyUtxowPredFailure ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Utxow Methods injectFailure ∷ ShelleyUtxowPredFailure ShelleyEra → EraRuleFailure "UTXOW" ShelleyEra Source # | |||||||||||||
FromJSON (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Methods parseJSON ∷ Value → Parser (TransitionConfig ShelleyEra) Source # parseJSONList ∷ Value → Parser [TransitionConfig ShelleyEra] Source # | |||||||||||||
ToJSON (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition | |||||||||||||
Generic (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Associated Types
Methods from ∷ TransitionConfig ShelleyEra → Rep (TransitionConfig ShelleyEra) x # to ∷ Rep (TransitionConfig ShelleyEra) x → TransitionConfig ShelleyEra # | |||||||||||||
Show (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Methods showsPrec ∷ Int → TransitionConfig ShelleyEra → ShowS # show ∷ TransitionConfig ShelleyEra → String # showList ∷ [TransitionConfig ShelleyEra] → ShowS # | |||||||||||||
Show (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods showsPrec ∷ Int → CanonicalTxIn (CardanoEras c) → ShowS # show ∷ CanonicalTxIn (CardanoEras c) → String # showList ∷ [CanonicalTxIn (CardanoEras c)] → ShowS # | |||||||||||||
Eq (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Methods (==) ∷ TransitionConfig ShelleyEra → TransitionConfig ShelleyEra → Bool # (/=) ∷ TransitionConfig ShelleyEra → TransitionConfig ShelleyEra → Bool # | |||||||||||||
Eq (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods (==) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (/=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # | |||||||||||||
Ord (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods compare ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Ordering # (<) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (<=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # (>=) ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → Bool # max ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # min ∷ CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) → CanonicalTxIn (CardanoEras c) # | |||||||||||||
CardanoHardForkConstraints c ⇒ MemPack (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods packedByteCount ∷ CanonicalTxIn (CardanoEras c) → Int Source # packM ∷ CanonicalTxIn (CardanoEras c) → Pack s () Source # unpackM ∷ Buffer b ⇒ Unpack b (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
NoThunks (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition Methods noThunks ∷ Context → TransitionConfig ShelleyEra → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → TransitionConfig ShelleyEra → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (TransitionConfig ShelleyEra) → String Source # | |||||||||||||
NoThunks (CanonicalTxIn (CardanoEras c)) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Methods noThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # wNoThunks ∷ Context → CanonicalTxIn (CardanoEras c) → IO (Maybe ThunkInfo) Source # showTypeOf ∷ Proxy (CanonicalTxIn (CardanoEras c)) → String Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CanHardFork (CardanoEras c) Source # | When performing era translations, two eras have special behaviours on the ledger tables:
| ||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork Associated Types
Methods hardForkEraTranslation ∷ EraTranslation (CardanoEras c) Source # hardForkChainSel ∷ Tails AcrossEraSelection (CardanoEras c) Source # hardForkInjectTxs ∷ InPairs (RequiringBoth WrapLedgerConfig (Product2 InjectTx InjectValidatedTx)) (CardanoEras c) Source # hardForkInjTxMeasure ∷ NS WrapTxMeasure (CardanoEras c) → HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ CondenseConstraints (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Condense | |||||||||||||
CardanoHardForkConstraints c ⇒ HasCanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectCanonicalTxIn ∷ Index (CardanoEras c) x → TxIn (LedgerState x) → CanonicalTxIn (CardanoEras c) Source # ejectCanonicalTxIn ∷ Index (CardanoEras c) x → CanonicalTxIn (CardanoEras c) → TxIn (LedgerState x) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ HasHardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger Associated Types
Methods injectHardForkTxOut ∷ Index (CardanoEras c) x → TxOut (LedgerState x) → HardForkTxOut (CardanoEras c) Source # ejectHardForkTxOut ∷ Index (CardanoEras c) x → HardForkTxOut (CardanoEras c) → TxOut (LedgerState x) Source # txOutEjections ∷ NP ((K (NS WrapTxOut (CardanoEras c)) ∷ Type → Type) -.-> WrapTxOut) (CardanoEras c) Source # txOutTranslations ∷ Tails (Fn2 WrapTxOut) (CardanoEras c) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ BlockSupportsHFLedgerQuery (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.QueryHF Methods answerBlockQueryHFLookup ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFLookupTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # answerBlockQueryHFTraverse ∷ (All SingleEraBlock (CardanoEras c), Monad m) ⇒ Index (CardanoEras c) x → ExtLedgerCfg x → BlockQuery x 'QFTraverseTables result → ReadOnlyForker' m (HardForkBlock (CardanoEras c)) → m result Source # queryLedgerGetTraversingFilter ∷ Index (CardanoEras c) x → BlockQuery x 'QFTraverseTables result → TxOut (LedgerState (HardForkBlock (CardanoEras c))) → Bool Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerialiseHFC (CardanoEras c) Source # | Important: we need to maintain binary compatibility with Byron blocks, as they are already stored on disk. We also want to be able to efficiently detect (without having to peek far ahead) whether we're dealing with a Byron or Shelley block, so that we can invoke the right decoder. We plan to have a few more hard forks after Shelley (Goguen, Basho, Voltaire), so we want a future-proof envelope for distinguishing the different block types, i.e., a byte indicating the era. Byron does not provide such an envelope. However, a Byron block is a CBOR
2-tuple with the first element being a tag ( We encode a
For more details, see: https://github.com/IntersectMBO/ouroboros-network/pull/1175#issuecomment-558147194 | ||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods encodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → HardForkBlock (CardanoEras c) → Encoding Source # decodeDiskHfcBlock ∷ CodecConfig (HardForkBlock (CardanoEras c)) → ∀ s. Decoder s (ByteString → HardForkBlock (CardanoEras c)) Source # reconstructHfcPrefixLen ∷ proxy (Header (HardForkBlock (CardanoEras c))) → PrefixLen Source # reconstructHfcNestedCtxt ∷ proxy (Header (HardForkBlock (CardanoEras c))) → ShortByteString → SizeInBytes → SomeSecond (NestedCtxt Header) (HardForkBlock (CardanoEras c)) Source # getHfcBinaryBlockInfo ∷ HardForkBlock (CardanoEras c) → BinaryBlockInfo Source # estimateHfcBlockSize ∷ Header (HardForkBlock (CardanoEras c)) → SizeInBytes Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ SerializeTablesWithHint (LedgerState (HardForkBlock (CardanoEras c))) Source # | |||||||||||||
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 # | |||||||||||||
CardanoHardForkConstraints c ⇒ SupportedNetworkProtocolVersion (CardanoBlock c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Node Methods supportedNodeToNodeVersions ∷ Proxy (CardanoBlock c) → Map NodeToNodeVersion (BlockNodeToNodeVersion (CardanoBlock c)) Source # supportedNodeToClientVersions ∷ Proxy (CardanoBlock c) → Map NodeToClientVersion (BlockNodeToClientVersion (CardanoBlock c)) Source # latestReleasedNodeVersion ∷ Proxy (CardanoBlock c) → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source # | |||||||||||||
PraosCrypto c ⇒ ShelleyCompatible (TPraos c) ShelleyEra Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.HFEras | |||||||||||||
ShelleyCompatible p ShelleyEra ⇒ TxLimits (ShelleyBlock p ShelleyEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool Associated Types
Methods txMeasure ∷ LedgerConfig (ShelleyBlock p ShelleyEra) → TickedLedgerState (ShelleyBlock p ShelleyEra) ValuesMK → GenTx (ShelleyBlock p ShelleyEra) → Except (ApplyTxErr (ShelleyBlock p ShelleyEra)) (TxMeasure (ShelleyBlock p ShelleyEra)) Source # blockCapacityTxMeasure ∷ ∀ (mk ∷ MapKind). LedgerConfig (ShelleyBlock p ShelleyEra) → TickedLedgerState (ShelleyBlock p ShelleyEra) mk → TxMeasure (ShelleyBlock p ShelleyEra) Source # | |||||||||||||
CardanoHardForkConstraints c ⇒ IndexedMemPack (LedgerState (HardForkBlock (CardanoEras c)) EmptyMK) (CardanoTxOut c) Source # | |||||||||||||
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 ⇒ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → Unpack b (CardanoTxOut c) Source # indexedTypeName ∷ LedgerState (HardForkBlock (CardanoEras c)) EmptyMK → String Source # | |||||||||||||
type CertState ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.CertState | |||||||||||||
type NativeScript ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Scripts | |||||||||||||
type Script ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Scripts | |||||||||||||
type Tx ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Tx.Internal | |||||||||||||
type TxAuxData ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxAuxData | |||||||||||||
type TxBody ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxBody | |||||||||||||
type TxBodyUpgradeError ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxBody | |||||||||||||
type TxOut ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxOut | |||||||||||||
type TxSeq ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.BlockChain | |||||||||||||
type TxUpgradeError ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Tx.Internal | |||||||||||||
type TxWits ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxWits | |||||||||||||
type Value ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type PreviousEra ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type ProtVerHigh ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type ProtVerLow ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type TranslationContext ShelleyEra | |||||||||||||
type TxCert ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxCert | |||||||||||||
type TxCertUpgradeError ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.TxCert | |||||||||||||
type Genesis ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Genesis | |||||||||||||
type GovState ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Governance | |||||||||||||
type InstantStake ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.State.Stake | |||||||||||||
type ScriptsNeeded ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.UTxO | |||||||||||||
newtype TransitionConfig ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition | |||||||||||||
type EraRule "BBODY" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "DELEG" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "DELEGS" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "DELPL" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "EPOCH" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "LEDGER" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "LEDGERS" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "MIR" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "NEWEPOCH" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "NEWPP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "POOL" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "POOLREAP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "PPUP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "RUPD" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "SNAP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "TICK" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "TICKF" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "UPEC" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "UTXO" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRule "UTXOW" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Era | |||||||||||||
type EraRuleEvent "LEDGER" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledger | |||||||||||||
type EraRuleEvent "LEDGERS" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledgers | |||||||||||||
type EraRuleEvent "NEWEPOCH" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.NewEpoch | |||||||||||||
type EraRuleEvent "POOLREAP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.PoolReap | |||||||||||||
type EraRuleEvent "TICK" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Tick | |||||||||||||
type EraRuleFailure "BBODY" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Bbody | |||||||||||||
type EraRuleFailure "DELEG" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Deleg | |||||||||||||
type EraRuleFailure "DELEGS" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Delegs | |||||||||||||
type EraRuleFailure "DELPL" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Delpl | |||||||||||||
type EraRuleFailure "LEDGER" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledger | |||||||||||||
type EraRuleFailure "LEDGERS" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ledgers | |||||||||||||
type EraRuleFailure "POOL" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Pool | |||||||||||||
type EraRuleFailure "PPUP" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Ppup | |||||||||||||
type EraRuleFailure "UTXO" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Utxo | |||||||||||||
type EraRuleFailure "UTXOW" ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.Rules.Utxow | |||||||||||||
type DowngradePParams f ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.PParams | |||||||||||||
type PParamsHKD f ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.PParams | |||||||||||||
type UpgradePParams f ShelleyEra | |||||||||||||
Defined in Cardano.Ledger.Shelley.PParams | |||||||||||||
type Rep (TransitionConfig ShelleyEra) | |||||||||||||
Defined in Cardano.Ledger.Shelley.Transition type Rep (TransitionConfig ShelleyEra) = D1 ('MetaData "TransitionConfig" "Cardano.Ledger.Shelley.Transition" "cardano-ledger-shelley-1.16.0.0-c1008874f8b6847f8def90e1ee957acbea6233f4640506a80b63d2db757c701e" 'True) (C1 ('MetaCons "ShelleyTransitionConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "stcShelleyGenesis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShelleyGenesis))) | |||||||||||||
type HardForkTxMeasure (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.CanHardFork | |||||||||||||
newtype CanonicalTxIn (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type HardForkTxOut (CardanoEras c) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Cardano.Ledger | |||||||||||||
type TxMeasure (ShelleyBlock p ShelleyEra) Source # | |||||||||||||
Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool |
Eras instantiated with standard crypto
type StandardAllegra = AllegraEra Source #
Deprecated: In favor of AllegraEra
The Allegra era with standard crypto
type StandardAlonzo = AlonzoEra Source #
Deprecated: In favor of AlonzoEra
The Alonzo era with standard crypto
type StandardBabbage = BabbageEra Source #
Deprecated: In favor of BabbageEra
The Babbage era with standard crypto
type StandardConway = ConwayEra Source #
Deprecated: In favor of ConwayEra
The Conway era with standard crypto
type StandardMary = MaryEra Source #
Deprecated: In favor of MaryEra
The Mary era with standard crypto
type StandardShelley = ShelleyEra Source #
Deprecated: In favor of ShelleyEra
The Shelley era with standard crypto
Shelley-based era
data ConwayEraGovDict era where Source #
Constructors
ConwayEraGovDict ∷ ∀ era. ConwayEraGov era ⇒ ConwayEraGovDict era |
class (EraSegWits era, EraGov era, ApplyTx era, ApplyBlock era, EraTransition era, GetLedgerView era, NoThunks (StashedAVVMAddresses era), EncCBOR (StashedAVVMAddresses era), DecCBOR (StashedAVVMAddresses era), Show (StashedAVVMAddresses era), Eq (StashedAVVMAddresses era), DecCBOR (PredicateFailure (EraRule "LEDGER" era)), EncCBOR (PredicateFailure (EraRule "LEDGER" era)), DecCBOR (PredicateFailure (EraRule "UTXOW" era)), EncCBOR (PredicateFailure (EraRule "UTXOW" era)), Eq (PredicateFailure (EraRule "BBODY" era)), Show (PredicateFailure (EraRule "BBODY" era)), NoThunks (PredicateFailure (EraRule "BBODY" era)), NoThunks (TranslationContext era), ToCBOR (TranslationContext era), FromCBOR (TranslationContext era)) ⇒ ShelleyBasedEra era where Source #
Consensus often needs some more functionality than the ledger currently provides.
Either the functionality shouldn't or can't live in the ledger, in which case
it can be part and remain part of ShelleyBasedEra
. Or, the functionality
should live in the ledger, but hasn't yet been added to the ledger, or it
hasn't yet been propagated to this repository, in which case it can be added
to this class until that is the case.
If this class becomes redundant, We can move it to ledger and re-export it from here.
TODO Currently we include some constraints on the update state which are needed to determine the hard fork point. In the future this should be replaced with an appropriate API - see https://github.com/IntersectMBO/ouroboros-network/issues/2890
Methods
applyShelleyBasedTx ∷ Globals → LedgerEnv era → LedgerState era → WhetherToIntervene → Tx era → Except (ApplyTxError era) (LedgerState era, Validated (Tx era)) Source #
getConwayEraGovDict ∷ proxy era → Maybe (ConwayEraGovDict era) Source #
Whether the era has an instance of ConwayEraGov
Instances
ShelleyBasedEra AllegraEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv AllegraEra → LedgerState AllegraEra → WhetherToIntervene → Tx AllegraEra → Except (ApplyTxError AllegraEra) (LedgerState AllegraEra, Validated (Tx AllegraEra)) Source # getConwayEraGovDict ∷ proxy AllegraEra → Maybe (ConwayEraGovDict AllegraEra) Source # | |
ShelleyBasedEra AlonzoEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv AlonzoEra → LedgerState AlonzoEra → WhetherToIntervene → Tx AlonzoEra → Except (ApplyTxError AlonzoEra) (LedgerState AlonzoEra, Validated (Tx AlonzoEra)) Source # getConwayEraGovDict ∷ proxy AlonzoEra → Maybe (ConwayEraGovDict AlonzoEra) Source # | |
ShelleyBasedEra BabbageEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv BabbageEra → LedgerState BabbageEra → WhetherToIntervene → Tx BabbageEra → Except (ApplyTxError BabbageEra) (LedgerState BabbageEra, Validated (Tx BabbageEra)) Source # getConwayEraGovDict ∷ proxy BabbageEra → Maybe (ConwayEraGovDict BabbageEra) Source # | |
ShelleyBasedEra ConwayEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv ConwayEra → LedgerState ConwayEra → WhetherToIntervene → Tx ConwayEra → Except (ApplyTxError ConwayEra) (LedgerState ConwayEra, Validated (Tx ConwayEra)) Source # getConwayEraGovDict ∷ proxy ConwayEra → Maybe (ConwayEraGovDict ConwayEra) Source # | |
ShelleyBasedEra MaryEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv MaryEra → LedgerState MaryEra → WhetherToIntervene → Tx MaryEra → Except (ApplyTxError MaryEra) (LedgerState MaryEra, Validated (Tx MaryEra)) Source # getConwayEraGovDict ∷ proxy MaryEra → Maybe (ConwayEraGovDict MaryEra) Source # | |
ShelleyBasedEra ShelleyEra Source # | |
Defined in Ouroboros.Consensus.Shelley.Eras Methods applyShelleyBasedTx ∷ Globals → LedgerEnv ShelleyEra → LedgerState ShelleyEra → WhetherToIntervene → Tx ShelleyEra → Except (ApplyTxError ShelleyEra) (LedgerState ShelleyEra, Validated (Tx ShelleyEra)) Source # getConwayEraGovDict ∷ proxy ShelleyEra → Maybe (ConwayEraGovDict ShelleyEra) Source # |
Wrapper for partially applying the Tx
type family
For generality, Consensus uses that type family as eg the index of
TranslateEra
. We thus need to partially apply it.
cardano-ledger-specs
also declares such a newtype, but currently it's only
defined in the Alonzo translation module, which seems somewhat inappropriate
to use for previous eras. Also, we use a Wrap
prefix in Consensus. Hence
this minor mediating definition. TODO I'm not even fully persuading myself
with this justification.
Instances
TranslateEra AllegraEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext AllegraEra → WrapTx (PreviousEra AllegraEra) → Except (TranslationError AllegraEra WrapTx) (WrapTx AllegraEra) Source # | |||||
TranslateEra AlonzoEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext AlonzoEra → WrapTx (PreviousEra AlonzoEra) → Except (TranslationError AlonzoEra WrapTx) (WrapTx AlonzoEra) Source # | |||||
TranslateEra BabbageEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext BabbageEra → WrapTx (PreviousEra BabbageEra) → Except (TranslationError BabbageEra WrapTx) (WrapTx BabbageEra) Source # | |||||
TranslateEra ConwayEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext ConwayEra → WrapTx (PreviousEra ConwayEra) → Except (TranslationError ConwayEra WrapTx) (WrapTx ConwayEra) Source # | |||||
TranslateEra MaryEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras Associated Types
Methods translateEra ∷ TranslationContext MaryEra → WrapTx (PreviousEra MaryEra) → Except (TranslationError MaryEra WrapTx) (WrapTx MaryEra) Source # | |||||
type TranslationError AllegraEra WrapTx Source # | |||||
type TranslationError AlonzoEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||
type TranslationError BabbageEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||
type TranslationError ConwayEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras | |||||
type TranslationError MaryEra WrapTx Source # | |||||
Defined in Ouroboros.Consensus.Shelley.Eras |
Convenience functions
Re-exports
data StandardCrypto Source #
The same crypto used on the net
Instances
Crypto StandardCrypto | |||||||||
Defined in Cardano.Ledger.Crypto.Internal Associated Types
| |||||||||
PraosCrypto StandardCrypto | |||||||||
Defined in Cardano.Protocol.TPraos.API | |||||||||
PraosCrypto StandardCrypto | |||||||||
Defined in Ouroboros.Consensus.Protocol.Praos | |||||||||
type KES StandardCrypto | |||||||||
Defined in Cardano.Ledger.Crypto.Internal | |||||||||
type VRF StandardCrypto | |||||||||
Defined in Cardano.Ledger.Crypto.Internal |