cardano-ledger-alonzo-1.17.0.0: Cardano ledger introducing Plutus Core
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Alonzo.Core

Synopsis

Documentation

data AlonzoBlockBody era where Source #

Bundled Patterns

pattern AlonzoBlockBody ∷ (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → AlonzoBlockBody era 

Instances

Instances details
(AlonzoEraTx era, DecCBOR (Annotator (TxAuxData era)), DecCBOR (Annotator (TxBody 'TopTx era)), DecCBOR (Annotator (TxWits era))) ⇒ DecCBOR (Annotator (AlonzoBlockBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Era era ⇒ EncCBORGroup (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

NFData (Tx 'TopTx era) ⇒ NFData (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

rnf ∷ AlonzoBlockBody era → () #

Generic (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Associated Types

type Rep (AlonzoBlockBody era) 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

Methods

from ∷ AlonzoBlockBody era → Rep (AlonzoBlockBody era) x #

to ∷ Rep (AlonzoBlockBody era) x → AlonzoBlockBody era #

Show (Tx 'TopTx era) ⇒ Show (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

showsPrec ∷ Int → AlonzoBlockBody era → ShowS #

show ∷ AlonzoBlockBody era → String #

showList ∷ [AlonzoBlockBody era] → ShowS #

Eq (Tx 'TopTx era) ⇒ Eq (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

(==) ∷ AlonzoBlockBody era → AlonzoBlockBody era → Bool #

(/=) ∷ AlonzoBlockBody era → AlonzoBlockBody era → Bool #

(Typeable era, NoThunks (Tx 'TopTx era)) ⇒ NoThunks (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

class (EraTx era, AlonzoEraTxBody era, AlonzoEraTxWits era, AlonzoEraScript era, AlonzoEraTxAuxData era) ⇒ AlonzoEraTx era where Source #

Minimal complete definition

isPhase2ValidTxL

Methods

isPhase2ValidTxL ∷ Lens' (Tx 'TopTx era) IsPhase2Valid Source #

isValidTxL ∷ Lens' (Tx 'TopTx era) IsPhase2Valid Source #

Deprecated: In favor of isPhase2ValidTxL

getTotalExUnits ∷ ∀ (l ∷ TxLevel). Tx l era → ExUnits Source #

Total declared execution units, including sub-transactions when supported. Earlier eras only have the transaction's own redeemers.

data IsPhase2Valid Source #

Tag indicating whether the non-native (phase-2) scripts in this transaction are expected to validate. This is added by the block creator when constructing the block.

Constructors

Phase2Invalid 
Phase2Valid 

Instances

Instances details
FromJSON IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToJSON IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

DecCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

EncCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

NFData IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnf ∷ IsPhase2Valid → () #

Monoid IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Semigroup IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Generic IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Associated Types

type Rep IsPhase2Valid 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid = D1 ('MetaData "IsPhase2Valid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Phase2Invalid" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Phase2Valid" 'PrefixI 'False) (U1 ∷ Type → Type))
Show IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Eq IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Ord IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

NoThunks IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid = D1 ('MetaData "IsPhase2Valid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Phase2Invalid" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Phase2Valid" 'PrefixI 'False) (U1 ∷ Type → Type))

class (EraScript era, Eq (PlutusScript era), Ord (PlutusScript era), Show (PlutusScript era), NoThunks (PlutusScript era), NFData (PlutusScript era), SafeToHash (PlutusScript era), Eq (PlutusPurpose AsItem era), Ord (PlutusPurpose AsItem era), Show (PlutusPurpose AsItem era), EncCBOR (PlutusPurpose AsItem era), DecCBOR (PlutusPurpose AsItem era), NoThunks (PlutusPurpose AsItem era), NFData (PlutusPurpose AsItem era), Eq (PlutusPurpose AsIx era), Ord (PlutusPurpose AsIx era), Show (PlutusPurpose AsIx era), EncCBOR (PlutusPurpose AsIx era), DecCBOR (PlutusPurpose AsIx era), EncCBORGroup (PlutusPurpose AsIx era), DecCBORGroup (PlutusPurpose AsIx era), NoThunks (PlutusPurpose AsIx era), NFData (PlutusPurpose AsIx era), Eq (PlutusPurpose AsIxItem era), Ord (PlutusPurpose AsIxItem era), Show (PlutusPurpose AsIxItem era), NoThunks (PlutusPurpose AsIxItem era), NFData (PlutusPurpose AsIxItem era), AllegraEraScript era) ⇒ AlonzoEraScript era where Source #

Associated Types

data PlutusScript era Source #

type PlutusPurpose (f ∷ Type → Type → Type) era = (r ∷ Type) | r → f era Source #

Methods

eraMaxLanguage ∷ Language Source #

Highest supported Plutus language version for this era.

toPlutusScript ∷ Script era → Maybe (PlutusScript era) Source #

Attempt to extract a PlutusScript from a wrapper type family Script. Whenevr Script is a native script Nothing will be returned

default toPlutusScript ∷ Script era ~ AlonzoScript era ⇒ Script era → Maybe (PlutusScript era) Source #

fromPlutusScript ∷ PlutusScript era → Script era Source #

Convert a PlutusScript to a wrapper type family Script

default fromPlutusScript ∷ Script era ~ AlonzoScript era ⇒ PlutusScript era → Script era Source #

mkPlutusScript ∷ ∀ (l ∷ Language) m. (PlutusLanguage l, MonadFail m) ⇒ Plutus l → m (PlutusScript era) Source #

Returns Nothing, whenver plutus language is not supported for this era.

withPlutusScript ∷ PlutusScript era → (∀ (l ∷ Language). PlutusLanguage l ⇒ Plutus l → a) → a Source #

Give a PlutusScript apply a function that can handle Plutus scripts of all known versions.

hoistPlutusPurpose ∷ (∀ ix it. g ix it → f ix it) → PlutusPurpose g era → PlutusPurpose f era Source #

mkSpendingPurpose ∷ f Word32 TxIn → PlutusPurpose f era Source #

toSpendingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 TxIn) Source #

mkMintingPurpose ∷ f Word32 PolicyID → PlutusPurpose f era Source #

toMintingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 PolicyID) Source #

mkCertifyingPurpose ∷ f Word32 (TxCert era) → PlutusPurpose f era Source #

toCertifyingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 (TxCert era)) Source #

mkWithdrawingPurpose ∷ f Word32 AccountAddress → PlutusPurpose f era Source #

toWithdrawingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 AccountAddress) Source #

mkRewardingPurpose ∷ f Word32 AccountAddress → PlutusPurpose f era Source #

Deprecated: In favor of mkWithdrawingPurpose

toRewardingPurpose ∷ PlutusPurpose f era → Maybe (f Word32 AccountAddress) Source #

Deprecated: In favor of toWithdrawingPurpose

upgradePlutusPurposeAsIx ∷ PlutusPurpose AsIx (PreviousEra era) → PlutusPurpose AsIx era Source #

Instances

Instances details
AlonzoEraScript AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

eraMaxLanguage ∷ Language Source #

toPlutusScript ∷ Script AlonzoEra → Maybe (PlutusScript AlonzoEra) Source #

fromPlutusScript ∷ PlutusScript AlonzoEra → Script AlonzoEra Source #

mkPlutusScript ∷ ∀ (l ∷ Language) m. (PlutusLanguage l, MonadFail m) ⇒ Plutus l → m (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 #

mkWithdrawingPurpose ∷ f Word32 AccountAddress → PlutusPurpose f AlonzoEra Source #

toWithdrawingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 AccountAddress) Source #

mkRewardingPurpose ∷ f Word32 AccountAddress → PlutusPurpose f AlonzoEra Source #

toRewardingPurpose ∷ PlutusPurpose f AlonzoEra → Maybe (f Word32 AccountAddress) Source #

upgradePlutusPurposeAsIx ∷ PlutusPurpose AsIx (PreviousEra AlonzoEra) → PlutusPurpose AsIx AlonzoEra Source #

newtype AsIx ix it Source #

Constructors

AsIx 

Fields

Instances

Instances details
FromJSON ix ⇒ FromJSON (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

parseJSON ∷ Value → Parser (AsIx ix it) Source #

parseJSONList ∷ Value → Parser [AsIx ix it] Source #

omittedField ∷ Maybe (AsIx ix it) Source #

ToJSON ix ⇒ ToJSON (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

toJSON ∷ AsIx ix it → Value Source #

toEncoding ∷ AsIx ix it → Encoding Source #

toJSONList ∷ [AsIx ix it] → Value Source #

toEncodingList ∷ [AsIx ix it] → Encoding Source #

omitField ∷ AsIx ix it → Bool Source #

(Typeable it, DecCBOR ix) ⇒ DecCBOR (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

decCBOR ∷ Decoder s (AsIx ix it) Source #

dropCBOR ∷ Proxy (AsIx ix it) → Decoder s () Source #

label ∷ Proxy (AsIx ix it) → Text Source #

EncCBOR ix ⇒ EncCBOR (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

encCBOR ∷ AsIx ix it → Encoding Source #

NFData ix ⇒ NFData (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf ∷ AsIx ix it → () #

Generic ix ⇒ Generic (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIx ix it) = Rep ix

Methods

from ∷ AsIx ix it → Rep (AsIx ix it) x #

to ∷ Rep (AsIx ix it) x → AsIx ix it #

Show (AlonzoPlutusPurpose AsIx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show ix ⇒ Show (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

showsPrec ∷ Int → AsIx ix it → ShowS #

show ∷ AsIx ix it → String #

showList ∷ [AsIx ix it] → ShowS #

Eq (AlonzoPlutusPurpose AsIx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Eq ix ⇒ Eq (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

(==) ∷ AsIx ix it → AsIx ix it → Bool #

(/=) ∷ AsIx ix it → AsIx ix it → Bool #

Ord (AlonzoPlutusPurpose AsIx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Ord ix ⇒ Ord (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

compare ∷ AsIx ix it → AsIx ix it → Ordering #

(<) ∷ AsIx ix it → AsIx ix it → Bool #

(<=) ∷ AsIx ix it → AsIx ix it → Bool #

(>) ∷ AsIx ix it → AsIx ix it → Bool #

(>=) ∷ AsIx ix it → AsIx ix it → Bool #

max ∷ AsIx ix it → AsIx ix it → AsIx ix it #

min ∷ AsIx ix it → AsIx ix it → AsIx ix it #

NoThunks (AlonzoPlutusPurpose AsIx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NoThunks ix ⇒ NoThunks (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

noThunks ∷ Context → AsIx ix it → IO (Maybe ThunkInfo) Source #

wNoThunks ∷ Context → AsIx ix it → IO (Maybe ThunkInfo) Source #

showTypeOf ∷ Proxy (AsIx ix it) → String Source #

type Rep (AsIx ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIx ix it) = Rep ix

newtype AsItem ix it Source #

Constructors

AsItem 

Fields

Instances

Instances details
FromJSON it ⇒ FromJSON (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

ToJSON it ⇒ ToJSON (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

toJSON ∷ AsItem ix it → Value Source #

toEncoding ∷ AsItem ix it → Encoding Source #

toJSONList ∷ [AsItem ix it] → Value Source #

toEncodingList ∷ [AsItem ix it] → Encoding Source #

omitField ∷ AsItem ix it → Bool Source #

(Typeable ix, DecCBOR it) ⇒ DecCBOR (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

decCBOR ∷ Decoder s (AsItem ix it) Source #

dropCBOR ∷ Proxy (AsItem ix it) → Decoder s () Source #

label ∷ Proxy (AsItem ix it) → Text Source #

EncCBOR it ⇒ EncCBOR (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

encCBOR ∷ AsItem ix it → Encoding Source #

NFData it ⇒ NFData (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf ∷ AsItem ix it → () #

Generic it ⇒ Generic (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AsItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsItem ix it) = Rep it

Methods

from ∷ AsItem ix it → Rep (AsItem ix it) x #

to ∷ Rep (AsItem ix it) x → AsItem ix it #

Show (TxCert era) ⇒ Show (AlonzoPlutusPurpose AsItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show it ⇒ Show (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

showsPrec ∷ Int → AsItem ix it → ShowS #

show ∷ AsItem ix it → String #

showList ∷ [AsItem ix it] → ShowS #

Eq (TxCert era) ⇒ Eq (AlonzoPlutusPurpose AsItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Eq it ⇒ Eq (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

(==) ∷ AsItem ix it → AsItem ix it → Bool #

(/=) ∷ AsItem ix it → AsItem ix it → Bool #

Ord (TxCert era) ⇒ Ord (AlonzoPlutusPurpose AsItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Ord it ⇒ Ord (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

compare ∷ AsItem ix it → AsItem ix it → Ordering #

(<) ∷ AsItem ix it → AsItem ix it → Bool #

(<=) ∷ AsItem ix it → AsItem ix it → Bool #

(>) ∷ AsItem ix it → AsItem ix it → Bool #

(>=) ∷ AsItem ix it → AsItem ix it → Bool #

max ∷ AsItem ix it → AsItem ix it → AsItem ix it #

min ∷ AsItem ix it → AsItem ix it → AsItem ix it #

NoThunks (TxCert era) ⇒ NoThunks (AlonzoPlutusPurpose AsItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NoThunks it ⇒ NoThunks (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

noThunks ∷ Context → AsItem ix it → IO (Maybe ThunkInfo) Source #

wNoThunks ∷ Context → AsItem ix it → IO (Maybe ThunkInfo) Source #

showTypeOf ∷ Proxy (AsItem ix it) → String Source #

type Rep (AsItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsItem ix it) = Rep it

data AsIxItem ix it Source #

Constructors

AsIxItem 

Fields

Instances

Instances details
(FromJSON ix, FromJSON it) ⇒ FromJSON (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(ToJSON ix, ToJSON it) ⇒ ToJSON (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(NFData ix, NFData it) ⇒ NFData (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf ∷ AsIxItem ix it → () #

Generic (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIxItem ix it) = D1 ('MetaData "AsIxItem" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "AsIxItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "asIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ix) :*: S1 ('MetaSel ('Just "asItem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 it)))

Methods

from ∷ AsIxItem ix it → Rep (AsIxItem ix it) x #

to ∷ Rep (AsIxItem ix it) x → AsIxItem ix it #

Show (TxCert era) ⇒ Show (AlonzoPlutusPurpose AsIxItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Show ix, Show it) ⇒ Show (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

showsPrec ∷ Int → AsIxItem ix it → ShowS #

show ∷ AsIxItem ix it → String #

showList ∷ [AsIxItem ix it] → ShowS #

Eq (TxCert era) ⇒ Eq (AlonzoPlutusPurpose AsIxItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Eq ix, Eq it) ⇒ Eq (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

(==) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

(/=) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

Ord (TxCert era) ⇒ Ord (AlonzoPlutusPurpose AsIxItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Ord ix, Ord it) ⇒ Ord (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

compare ∷ AsIxItem ix it → AsIxItem ix it → Ordering #

(<) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

(<=) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

(>) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

(>=) ∷ AsIxItem ix it → AsIxItem ix it → Bool #

max ∷ AsIxItem ix it → AsIxItem ix it → AsIxItem ix it #

min ∷ AsIxItem ix it → AsIxItem ix it → AsIxItem ix it #

NoThunks (TxCert era) ⇒ NoThunks (AlonzoPlutusPurpose AsIxItem era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(NoThunks ix, NoThunks it) ⇒ NoThunks (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIxItem ix it) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIxItem ix it) = D1 ('MetaData "AsIxItem" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "AsIxItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "asIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ix) :*: S1 ('MetaSel ('Just "asItem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 it)))

pattern CertifyingPurpose ∷ AlonzoEraScript era ⇒ f Word32 (TxCert era) → PlutusPurpose f era Source #

pattern RewardingPurpose ∷ AlonzoEraScript era ⇒ f Word32 AccountAddress → PlutusPurpose f era Source #

Deprecated: In favor of WithdrawingPurpose

class (MaryEraTxBody era, AlonzoEraTxOut era) ⇒ AlonzoEraTxBody era where Source #

Methods

collateralInputsTxBodyL ∷ Lens' (TxBody 'TopTx era) (Set TxIn) Source #

reqSignerHashesTxBodyL ∷ ∀ (l ∷ TxLevel). AtMostEra "Conway" era ⇒ Lens' (TxBody l era) (Set (KeyHash 'Guard)) Source #

reqSignerHashesTxBodyG ∷ ∀ (l ∷ TxLevel). SimpleGetter (TxBody l era) (Set (KeyHash 'Guard)) Source #

default reqSignerHashesTxBodyG ∷ ∀ (l ∷ TxLevel). AtMostEra "Conway" era ⇒ SimpleGetter (TxBody l era) (Set (KeyHash 'Guard)) Source #

scriptIntegrityHashTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l era) (StrictMaybe ScriptIntegrityHash) Source #

networkIdTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l era) (StrictMaybe Network) Source #

redeemerPointer ∷ ∀ (l ∷ TxLevel). TxBody l era → PlutusPurpose AsItem era → StrictMaybe (PlutusPurpose AsIx era) Source #

This function is called rdptr in the spec. Given a TxBody and a plutus purpose with an item, we should be able to find the plutus purpose as in index

redeemerPointerInverse ∷ ∀ (l ∷ TxLevel). TxBody l era → PlutusPurpose AsIx era → StrictMaybe (PlutusPurpose AsIxItem era) Source #

This is an inverse of redeemerPointer. Given purpose as an index return it as an item.

newtype CoinPerWord Source #

Constructors

CoinPerWord 

Fields

Instances

Instances details
FromJSON CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

ToJSON CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

DecCBOR CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

EncCBOR CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

ToPlutusData CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NFData CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

rnf ∷ CoinPerWord → () #

Show CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Eq CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Ord CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks CoinPerWord Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams