| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Api.Tx.Wits
Synopsis
- class (EraScript era, Eq (TxWits era), EqRaw (TxWits era), Show (TxWits era), Monoid (TxWits era), NoThunks (TxWits era), ToCBOR (TxWits era), EncCBOR (TxWits era), DecCBOR (Annotator (TxWits era))) ⇒ EraTxWits era where
- mkBasicTxWits ∷ EraTxWits era ⇒ TxWits era
- addrTxWitsL ∷ EraTxWits era ⇒ Lens' (TxWits era) (Set (WitVKey 'Witness))
- data KeyRole = Witness
- data WitVKey (kr ∷ KeyRole) where
- pattern WitVKey ∷ VKey kr → SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody) → WitVKey kr
- witVKeyHash ∷ ∀ (kr ∷ KeyRole). WitVKey kr → KeyHash 'Witness
- bootAddrTxWitsL ∷ EraTxWits era ⇒ Lens' (TxWits era) (Set BootstrapWitness)
- data BootstrapWitness
- scriptTxWitsL ∷ EraTxWits era ⇒ Lens' (TxWits era) (Map ScriptHash (Script era))
- hashScriptTxWitsL ∷ EraTxWits era ⇒ Lens (TxWits era) (TxWits era) (Map ScriptHash (Script era)) [Script era]
- class (EraTxWits era, AnyEraScript era) ⇒ AnyEraTxWits era where
- datsTxWitsG ∷ SimpleGetter (TxWits era) (Maybe (TxDats era))
- rdmrsTxWitsG ∷ SimpleGetter (TxWits era) (Maybe (Redeemers era))
- class (EraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTxWits era
- datsTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens' (TxWits era) (TxDats era)
- hashDataTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens (TxWits era) (TxWits era) (TxDats era) [Data era]
- newtype TxDats era where
- unTxDats ∷ TxDats era → Map DataHash (Data era)
- unTxDatsL ∷ Era era ⇒ Lens' (TxDats era) (Map DataHash (Data era))
- rdmrsTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens' (TxWits era) (Redeemers era)
- newtype Redeemers era where
- MkRedeemers (MemoBytes (RedeemersRaw era))
- pattern Redeemers ∷ AlonzoEraScript era ⇒ Map (PlutusPurpose AsIx era) (Data era, ExUnits) → Redeemers era
- unRedeemers ∷ Redeemers era → Map (PlutusPurpose AsIx era) (Data era, ExUnits)
- unRedeemersL ∷ AlonzoEraScript era ⇒ Lens' (Redeemers era) (Map (PlutusPurpose AsIx era) (Data era, ExUnits))
- type family PlutusPurpose (f ∷ Type → Type → Type) era = (r ∷ Type) | r → era
- data AlonzoPlutusPurpose (f ∷ Type → Type → Type) era
- = AlonzoSpending !(f Word32 TxIn)
- | AlonzoMinting !(f Word32 PolicyID)
- | AlonzoCertifying !(f Word32 (TxCert era))
- | AlonzoRewarding !(f Word32 RewardAccount)
- newtype AsIx ix it = AsIx {
- unAsIx ∷ ix
- newtype AsItem ix it = AsItem {
- unAsItem ∷ it
- data ConwayPlutusPurpose (f ∷ Type → Type → Type) era
- = ConwaySpending !(f Word32 TxIn)
- | ConwayMinting !(f Word32 PolicyID)
- | ConwayCertifying !(f Word32 (TxCert era))
- | ConwayRewarding !(f Word32 RewardAccount)
- | ConwayVoting !(f Word32 Voter)
- | ConwayProposing !(f Word32 (ProposalProcedure era))
- binaryUpgradeTxWits ∷ (Era era, ToCBOR (TxWits (PreviousEra era)), DecCBOR (Annotator (TxWits era))) ⇒ TxWits (PreviousEra era) → Except DecoderError (TxWits era)
- upgradeTxWits ∷ EraApi era ⇒ TxWits (PreviousEra era) → TxWits era
Shelley onwards
class (EraScript era, Eq (TxWits era), EqRaw (TxWits era), Show (TxWits era), Monoid (TxWits era), NoThunks (TxWits era), ToCBOR (TxWits era), EncCBOR (TxWits era), DecCBOR (Annotator (TxWits era))) ⇒ EraTxWits era Source #
A collection of witnesses in a Tx
Minimal complete definition
Instances
mkBasicTxWits ∷ EraTxWits era ⇒ TxWits era Source #
Address witness
The role of a key.
All key roles are fixed and unique, except for the Witness role. In particular,
keys can be cast to a Witness role with the help of asWitness, because same witness
can be valid for many roles.
In fact, it is perfectly allowable for a key to be used in many roles by the end user; there is nothing prohibiting somebody using the same underlying key or a script as their payment and staking credential, as well as the key for their stake pool. However, in the ledger code mixing up keys with different roles could be catastrophic, that is why we have this separation.
Constructors
| Witness |
WitVKey
data WitVKey (kr ∷ KeyRole) where Source #
Proof/Witness that a transaction is authorized by the given key holder.
Bundled Patterns
| pattern WitVKey ∷ VKey kr → SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody) → WitVKey kr |
Instances
| Typeable kr ⇒ FromCBOR (WitVKey kr) | |||||
| Typeable kr ⇒ ToCBOR (WitVKey kr) | |||||
| Typeable kr ⇒ DecCBOR (Annotator (WitVKey kr)) | |||||
| Typeable kr ⇒ DecCBOR (WitVKey kr) | |||||
| Typeable kr ⇒ EncCBOR (WitVKey kr) | |||||
| NFData (WitVKey kr) | |||||
Defined in Cardano.Ledger.Keys.WitVKey | |||||
| Generic (WitVKey kr) | |||||
Defined in Cardano.Ledger.Keys.WitVKey Associated Types
| |||||
| Show (WitVKey kr) | |||||
| Eq (WitVKey kr) | |||||
| Typeable kr ⇒ Ord (WitVKey kr) | |||||
Defined in Cardano.Ledger.Keys.WitVKey | |||||
| Typeable kr ⇒ NoThunks (WitVKey kr) | |||||
| type Rep (WitVKey kr) | |||||
Defined in Cardano.Ledger.Keys.WitVKey type Rep (WitVKey kr) = D1 ('MetaData "WitVKey" "Cardano.Ledger.Keys.WitVKey" "cardano-ledger-core-1.19.0.0-inplace" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) (S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey kr)) :*: (S1 ('MetaSel ('Just "wvkSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody))) :*: S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness))))) | |||||
witVKeyHash ∷ ∀ (kr ∷ KeyRole). WitVKey kr → KeyHash 'Witness Source #
Access computed hash. Evaluated lazily
Byron address witness
bootAddrTxWitsL ∷ EraTxWits era ⇒ Lens' (TxWits era) (Set BootstrapWitness) Source #
data BootstrapWitness Source #
Instances
| FromCBOR BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap | |||||
| ToCBOR BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods toCBOR ∷ BootstrapWitness → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy BootstrapWitness → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [BootstrapWitness] → Size Source # | |||||
| DecCBOR BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap | |||||
| EncCBOR BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods | |||||
| NFData BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods rnf ∷ BootstrapWitness → () # | |||||
| Generic BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Associated Types
Methods from ∷ BootstrapWitness → Rep BootstrapWitness x # to ∷ Rep BootstrapWitness x → BootstrapWitness # | |||||
| Show BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods showsPrec ∷ Int → BootstrapWitness → ShowS # show ∷ BootstrapWitness → String # showList ∷ [BootstrapWitness] → ShowS # | |||||
| Eq BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods | |||||
| Ord BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap Methods compare ∷ BootstrapWitness → BootstrapWitness → Ordering # (<) ∷ BootstrapWitness → BootstrapWitness → Bool # (<=) ∷ BootstrapWitness → BootstrapWitness → Bool # (>) ∷ BootstrapWitness → BootstrapWitness → Bool # (>=) ∷ BootstrapWitness → BootstrapWitness → Bool # max ∷ BootstrapWitness → BootstrapWitness → BootstrapWitness # min ∷ BootstrapWitness → BootstrapWitness → BootstrapWitness # | |||||
| NoThunks BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap | |||||
| DecCBOR (Annotator BootstrapWitness) | |||||
| type Rep BootstrapWitness | |||||
Defined in Cardano.Ledger.Keys.Bootstrap type Rep BootstrapWitness = D1 ('MetaData "BootstrapWitness" "Cardano.Ledger.Keys.Bootstrap" "cardano-ledger-core-1.19.0.0-inplace" 'False) (C1 ('MetaCons "BootstrapWitness" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bwKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (VKey 'Witness)) :*: S1 ('MetaSel ('Just "bwSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (SignedDSIGN DSIGN (Hash HASH EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "bwChainCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainCode) :*: S1 ('MetaSel ('Just "bwAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))) | |||||
Script witness
scriptTxWitsL ∷ EraTxWits era ⇒ Lens' (TxWits era) (Map ScriptHash (Script era)) Source #
hashScriptTxWitsL ∷ EraTxWits era ⇒ Lens (TxWits era) (TxWits era) (Map ScriptHash (Script era)) [Script era] Source #
This is a helper lens that will hash the scripts when adding as witnesses.
Any era
class (EraTxWits era, AnyEraScript era) ⇒ AnyEraTxWits era where Source #
Minimal complete definition
Nothing
Methods
datsTxWitsG ∷ SimpleGetter (TxWits era) (Maybe (TxDats era)) Source #
default datsTxWitsG ∷ AlonzoEraTxWits era ⇒ SimpleGetter (TxWits era) (Maybe (TxDats era)) Source #
rdmrsTxWitsG ∷ SimpleGetter (TxWits era) (Maybe (Redeemers era)) Source #
default rdmrsTxWitsG ∷ AlonzoEraTxWits era ⇒ SimpleGetter (TxWits era) (Maybe (Redeemers era)) Source #
Instances
| AnyEraTxWits AllegraEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits AllegraEra) (Maybe (TxDats AllegraEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits AllegraEra) (Maybe (Redeemers AllegraEra)) Source # | |
| AnyEraTxWits AlonzoEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits AlonzoEra) (Maybe (TxDats AlonzoEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits AlonzoEra) (Maybe (Redeemers AlonzoEra)) Source # | |
| AnyEraTxWits BabbageEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits BabbageEra) (Maybe (TxDats BabbageEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits BabbageEra) (Maybe (Redeemers BabbageEra)) Source # | |
| AnyEraTxWits ConwayEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits ConwayEra) (Maybe (TxDats ConwayEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits ConwayEra) (Maybe (Redeemers ConwayEra)) Source # | |
| AnyEraTxWits DijkstraEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits DijkstraEra) (Maybe (TxDats DijkstraEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits DijkstraEra) (Maybe (Redeemers DijkstraEra)) Source # | |
| AnyEraTxWits MaryEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits MaryEra) (Maybe (TxDats MaryEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits MaryEra) (Maybe (Redeemers MaryEra)) Source # | |
| AnyEraTxWits ShelleyEra Source # | |
Defined in Cardano.Ledger.Api.Tx.Wits Methods datsTxWitsG ∷ SimpleGetter (TxWits ShelleyEra) (Maybe (TxDats ShelleyEra)) Source # rdmrsTxWitsG ∷ SimpleGetter (TxWits ShelleyEra) (Maybe (Redeemers ShelleyEra)) Source # | |
Alonzo onwards
class (EraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTxWits era Source #
Minimal complete definition
Instances
| AlonzoEraTxWits AlonzoEra | |
| AlonzoEraTxWits BabbageEra | |
Defined in Cardano.Ledger.Babbage.TxWits Methods datsTxWitsL ∷ Lens' (TxWits BabbageEra) (TxDats BabbageEra) Source # rdmrsTxWitsL ∷ Lens' (TxWits BabbageEra) (Redeemers BabbageEra) Source # | |
| AlonzoEraTxWits ConwayEra | |
| AlonzoEraTxWits DijkstraEra | |
Defined in Cardano.Ledger.Dijkstra.TxWits Methods datsTxWitsL ∷ Lens' (TxWits DijkstraEra) (TxDats DijkstraEra) Source # rdmrsTxWitsL ∷ Lens' (TxWits DijkstraEra) (Redeemers DijkstraEra) Source # | |
datsTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens' (TxWits era) (TxDats era) Source #
hashDataTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens (TxWits era) (TxWits era) (TxDats era) [Data era] Source #
This is a convenience Lens that will hash the Data when it is being added to the
TxWits. See datsTxWitsL for a version that aloows setting TxDats instead.
Note that TxDats are based on MemoBytes since we must preserve
the original bytes for the ScriptIntegrity.
Since the TxDats exist outside of the transaction body,
this is how we ensure that they are not manipulated.
Instances
| Typeable era ⇒ ToCBOR (TxDats era) | |||||
| Era era ⇒ DecCBOR (Annotator (TxDats era)) | |||||
| Era era ⇒ EncCBOR (TxDats era) | Encodes memoized bytes created upon construction. | ||||
| SafeToHash (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits Methods originalBytes ∷ TxDats era → ByteString Source # originalBytesSize ∷ TxDats era → Int Source # makeHashWithExplicitProxys ∷ Proxy i → TxDats era → SafeHash i Source # | |||||
| Memoized (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits Associated Types
Methods getMemoBytes ∷ TxDats era → MemoBytes (RawType (TxDats era)) wrapMemoBytes ∷ MemoBytes (RawType (TxDats era)) → TxDats era | |||||
| NFData (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||
| Era era ⇒ Monoid (TxDats era) | |||||
| Era era ⇒ Semigroup (TxDats era) | |||||
| Generic (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits Associated Types
| |||||
| Show (TxDats era) | |||||
| Eq (TxDats era) | |||||
| Typeable era ⇒ NoThunks (TxDats era) | |||||
| type RawType (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||
| type Rep (TxDats era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits type Rep (TxDats era) = D1 ('MetaData "TxDats" "Cardano.Ledger.Alonzo.TxWits" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkTxDats" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (TxDatsRaw era))))) | |||||
rdmrsTxWitsL ∷ AlonzoEraTxWits era ⇒ Lens' (TxWits era) (Redeemers era) Source #
newtype Redeemers era Source #
Note that Redeemers are based on MemoBytes since we must preserve
the original bytes for the ScriptIntegrity.
Since the Redeemers exist outside of the transaction body,
this is how we ensure that they are not manipulated.
Constructors
| MkRedeemers (MemoBytes (RedeemersRaw era)) |
Bundled Patterns
| pattern Redeemers ∷ AlonzoEraScript era ⇒ Map (PlutusPurpose AsIx era) (Data era, ExUnits) → Redeemers era |
Instances
| Typeable era ⇒ ToCBOR (Redeemers era) | |||||
| AlonzoEraScript era ⇒ DecCBOR (Annotator (Redeemers era)) | |||||
| AlonzoEraScript era ⇒ EncCBOR (Redeemers era) | Encodes memoized bytes created upon construction. | ||||
| SafeToHash (Redeemers era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits Methods originalBytes ∷ Redeemers era → ByteString Source # originalBytesSize ∷ Redeemers era → Int Source # makeHashWithExplicitProxys ∷ Proxy i → Redeemers era → SafeHash i Source # | |||||
| Memoized (Redeemers era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits Associated Types
Methods getMemoBytes ∷ Redeemers era → MemoBytes (RawType (Redeemers era)) wrapMemoBytes ∷ MemoBytes (RawType (Redeemers era)) → Redeemers era | |||||
| AlonzoEraScript era ⇒ NFData (Redeemers era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||
| AlonzoEraScript era ⇒ Monoid (Redeemers era) | |||||
| AlonzoEraScript era ⇒ Semigroup (Redeemers era) | |||||
| Generic (Redeemers era) | |||||
| AlonzoEraScript era ⇒ Show (Redeemers era) | |||||
| AlonzoEraScript era ⇒ Eq (Redeemers era) | |||||
| AlonzoEraScript era ⇒ NoThunks (Redeemers era) | |||||
| type RawType (Redeemers era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||
| type Rep (Redeemers era) | |||||
Defined in Cardano.Ledger.Alonzo.TxWits | |||||
unRedeemers ∷ Redeemers era → Map (PlutusPurpose AsIx era) (Data era, ExUnits) Source #
unRedeemersL ∷ AlonzoEraScript era ⇒ Lens' (Redeemers era) (Map (PlutusPurpose AsIx era) (Data era, ExUnits)) Source #
type family PlutusPurpose (f ∷ Type → Type → Type) era = (r ∷ Type) | r → era Source #
Instances
| type PlutusPurpose f AlonzoEra | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| type PlutusPurpose f BabbageEra | |
Defined in Cardano.Ledger.Babbage.Scripts | |
| type PlutusPurpose f ConwayEra | |
Defined in Cardano.Ledger.Conway.Scripts | |
| type PlutusPurpose f DijkstraEra | |
Defined in Cardano.Ledger.Dijkstra.Scripts | |
data AlonzoPlutusPurpose (f ∷ Type → Type → Type) era Source #
Constructors
| AlonzoSpending !(f Word32 TxIn) | |
| AlonzoMinting !(f Word32 PolicyID) | |
| AlonzoCertifying !(f Word32 (TxCert era)) | |
| AlonzoRewarding !(f Word32 RewardAccount) |
Instances
| (∀ a b. (ToJSON a, ToJSON b) ⇒ ToJSON (f a b), ToJSON (TxCert era), Era era) ⇒ ToJSON (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods toJSON ∷ AlonzoPlutusPurpose f era → Value Source # toEncoding ∷ AlonzoPlutusPurpose f era → Encoding Source # toJSONList ∷ [AlonzoPlutusPurpose f era] → Value Source # toEncodingList ∷ [AlonzoPlutusPurpose f era] → Encoding Source # omitField ∷ AlonzoPlutusPurpose f era → Bool Source # | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), ∀ a b. (DecCBOR a, DecCBOR b) ⇒ DecCBOR (f a b), Era era, Typeable f, EncCBOR (TxCert era), DecCBOR (TxCert era)) ⇒ DecCBOR (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), Era era, EncCBOR (TxCert era)) ⇒ EncCBOR (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods encCBOR ∷ AlonzoPlutusPurpose f era → Encoding Source # | |||||
| (∀ a b. (DecCBOR a, DecCBOR b) ⇒ DecCBOR (f a b), Era era, Typeable f, DecCBOR (TxCert era)) ⇒ DecCBORGroup (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods decCBORGroup ∷ Decoder s (AlonzoPlutusPurpose f era) Source # | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), Era era, EncCBOR (TxCert era)) ⇒ EncCBORGroup (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods encCBORGroup ∷ AlonzoPlutusPurpose f era → Encoding Source # | |||||
| (∀ a b. (NFData a, NFData b) ⇒ NFData (f a b), NFData (TxCert era), Era era) ⇒ NFData (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods rnf ∷ AlonzoPlutusPurpose f era → () # | |||||
| Generic (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Associated Types
Methods from ∷ AlonzoPlutusPurpose f era → Rep (AlonzoPlutusPurpose f era) x # to ∷ Rep (AlonzoPlutusPurpose f era) x → AlonzoPlutusPurpose f era # | |||||
| Show (TxCert era) ⇒ Show (AlonzoPlutusPurpose AsItem era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||
| Show (AlonzoPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||
| Show (TxCert era) ⇒ Show (AlonzoPlutusPurpose AsIxItem era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts | |||||
| Eq (TxCert era) ⇒ Eq (AlonzoPlutusPurpose AsItem era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ AlonzoPlutusPurpose AsItem era → AlonzoPlutusPurpose AsItem era → Bool # (/=) ∷ AlonzoPlutusPurpose AsItem era → AlonzoPlutusPurpose AsItem era → Bool # | |||||
| Eq (AlonzoPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (/=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # | |||||
| Eq (TxCert era) ⇒ Eq (AlonzoPlutusPurpose AsIxItem era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ AlonzoPlutusPurpose AsIxItem era → AlonzoPlutusPurpose AsIxItem era → Bool # (/=) ∷ AlonzoPlutusPurpose AsIxItem era → AlonzoPlutusPurpose AsIxItem era → Bool # | |||||
| Ord (AlonzoPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts Methods compare ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Ordering # (<) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (<=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (>) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (>=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # max ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era # min ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era # | |||||
| NoThunks (TxCert era) ⇒ NoThunks (AlonzoPlutusPurpose AsItem era) | |||||
| NoThunks (AlonzoPlutusPurpose AsIx era) | |||||
| NoThunks (TxCert era) ⇒ NoThunks (AlonzoPlutusPurpose AsIxItem era) | |||||
| type Rep (AlonzoPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Alonzo.Scripts type Rep (AlonzoPlutusPurpose f era) = D1 ('MetaData "AlonzoPlutusPurpose" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) ((C1 ('MetaCons "AlonzoSpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 TxIn))) :+: C1 ('MetaCons "AlonzoMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 PolicyID)))) :+: (C1 ('MetaCons "AlonzoCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))) :+: C1 ('MetaCons "AlonzoRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 RewardAccount))))) | |||||
Instances
| ToJSON ix ⇒ ToJSON (AsIx ix it) | |
| (Typeable it, DecCBOR ix) ⇒ DecCBOR (AsIx ix it) | |
| EncCBOR ix ⇒ EncCBOR (AsIx ix it) | |
| NFData ix ⇒ NFData (AsIx ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| (EraPParams era, NFData (TxCert era)) ⇒ NFData (DijkstraPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods rnf ∷ DijkstraPlutusPurpose AsIx era → () # | |
| Generic ix ⇒ Generic (AsIx ix it) | |
| Show (AlonzoPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| Show ix ⇒ Show (AsIx ix it) | |
| Show (ConwayPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Conway.Scripts | |
| (EraPParams era, EraTxCert era) ⇒ Show (DijkstraPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts | |
| Eq (AlonzoPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (/=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # | |
| Eq ix ⇒ Eq (AsIx ix it) | |
| Eq (ConwayPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Conway.Scripts Methods (==) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (/=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # | |
| (EraTxCert era, EraPParams era) ⇒ Eq (DijkstraPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods (==) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # (/=) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # | |
| Ord (AlonzoPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Alonzo.Scripts Methods compare ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Ordering # (<) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (<=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (>) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # (>=) ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → Bool # max ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era # min ∷ AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era → AlonzoPlutusPurpose AsIx era # | |
| Ord ix ⇒ Ord (AsIx ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| Ord (ConwayPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Conway.Scripts Methods compare ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Ordering # (<) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (<=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (>) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (>=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # max ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era # min ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era # | |
| (EraPParams era, EraTxCert era) ⇒ Ord (DijkstraPlutusPurpose AsIx era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods compare ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Ordering # (<) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # (<=) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # (>) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # (>=) ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → Bool # max ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era # min ∷ DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era → DijkstraPlutusPurpose AsIx era # | |
| NoThunks (AlonzoPlutusPurpose AsIx era) | |
| NoThunks ix ⇒ NoThunks (AsIx ix it) | |
| NoThunks (ConwayPlutusPurpose AsIx era) | |
| (EraPParams era, NoThunks (TxCert era)) ⇒ NoThunks (DijkstraPlutusPurpose AsIx era) | |
| type Rep (AsIx ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
Instances
| ToJSON it ⇒ ToJSON (AsItem ix it) | |
| (Typeable ix, DecCBOR it) ⇒ DecCBOR (AsItem ix it) | |
| EncCBOR it ⇒ EncCBOR (AsItem ix it) | |
| NFData it ⇒ NFData (AsItem ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| (EraPParams era, NFData (TxCert era)) ⇒ NFData (DijkstraPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods rnf ∷ DijkstraPlutusPurpose AsItem era → () # | |
| Generic it ⇒ Generic (AsItem ix it) | |
| Show (TxCert era) ⇒ Show (AlonzoPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| Show it ⇒ Show (AsItem ix it) | |
| (Show (TxCert era), EraPParams era) ⇒ Show (ConwayPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Conway.Scripts | |
| (EraPParams era, EraTxCert era) ⇒ Show (DijkstraPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts | |
| Eq (TxCert era) ⇒ Eq (AlonzoPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Alonzo.Scripts Methods (==) ∷ AlonzoPlutusPurpose AsItem era → AlonzoPlutusPurpose AsItem era → Bool # (/=) ∷ AlonzoPlutusPurpose AsItem era → AlonzoPlutusPurpose AsItem era → Bool # | |
| Eq it ⇒ Eq (AsItem ix it) | |
| (Eq (TxCert era), EraPParams era) ⇒ Eq (ConwayPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Conway.Scripts Methods (==) ∷ ConwayPlutusPurpose AsItem era → ConwayPlutusPurpose AsItem era → Bool # (/=) ∷ ConwayPlutusPurpose AsItem era → ConwayPlutusPurpose AsItem era → Bool # | |
| (EraTxCert era, EraPParams era) ⇒ Eq (DijkstraPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods (==) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # (/=) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # | |
| Ord it ⇒ Ord (AsItem ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
| (EraPParams era, EraTxCert era) ⇒ Ord (DijkstraPlutusPurpose AsItem era) | |
Defined in Cardano.Ledger.Dijkstra.Scripts Methods compare ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Ordering # (<) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # (<=) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # (>) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # (>=) ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → Bool # max ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era # min ∷ DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era → DijkstraPlutusPurpose AsItem era # | |
| NoThunks (TxCert era) ⇒ NoThunks (AlonzoPlutusPurpose AsItem era) | |
| NoThunks it ⇒ NoThunks (AsItem ix it) | |
| (NoThunks (TxCert era), EraPParams era) ⇒ NoThunks (ConwayPlutusPurpose AsItem era) | |
| (EraPParams era, NoThunks (TxCert era)) ⇒ NoThunks (DijkstraPlutusPurpose AsItem era) | |
| type Rep (AsItem ix it) | |
Defined in Cardano.Ledger.Alonzo.Scripts | |
Conway
data ConwayPlutusPurpose (f ∷ Type → Type → Type) era Source #
Constructors
| ConwaySpending !(f Word32 TxIn) | |
| ConwayMinting !(f Word32 PolicyID) | |
| ConwayCertifying !(f Word32 (TxCert era)) | |
| ConwayRewarding !(f Word32 RewardAccount) | |
| ConwayVoting !(f Word32 Voter) | |
| ConwayProposing !(f Word32 (ProposalProcedure era)) |
Instances
| (∀ a b. (ToJSON a, ToJSON b) ⇒ ToJSON (f a b), ToJSON (TxCert era), EraPParams era) ⇒ ToJSON (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods toJSON ∷ ConwayPlutusPurpose f era → Value Source # toEncoding ∷ ConwayPlutusPurpose f era → Encoding Source # toJSONList ∷ [ConwayPlutusPurpose f era] → Value Source # toEncodingList ∷ [ConwayPlutusPurpose f era] → Encoding Source # omitField ∷ ConwayPlutusPurpose f era → Bool Source # | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), ∀ a b. (DecCBOR a, DecCBOR b) ⇒ DecCBOR (f a b), EraPParams era, Typeable f, EncCBOR (TxCert era), DecCBOR (TxCert era)) ⇒ DecCBOR (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), EraPParams era, EncCBOR (TxCert era)) ⇒ EncCBOR (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods encCBOR ∷ ConwayPlutusPurpose f era → Encoding Source # | |||||
| (∀ a b. (DecCBOR a, DecCBOR b) ⇒ DecCBOR (f a b), EraPParams era, Typeable f, DecCBOR (TxCert era)) ⇒ DecCBORGroup (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods decCBORGroup ∷ Decoder s (ConwayPlutusPurpose f era) Source # | |||||
| (∀ a b. (EncCBOR a, EncCBOR b) ⇒ EncCBOR (f a b), EraPParams era, EncCBOR (TxCert era)) ⇒ EncCBORGroup (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods encCBORGroup ∷ ConwayPlutusPurpose f era → Encoding Source # | |||||
| (∀ a b. (NFData a, NFData b) ⇒ NFData (f a b), NFData (TxCert era), EraPParams era) ⇒ NFData (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods rnf ∷ ConwayPlutusPurpose f era → () # | |||||
| Generic (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Associated Types
Methods from ∷ ConwayPlutusPurpose f era → Rep (ConwayPlutusPurpose f era) x # to ∷ Rep (ConwayPlutusPurpose f era) x → ConwayPlutusPurpose f era # | |||||
| (Show (TxCert era), EraPParams era) ⇒ Show (ConwayPlutusPurpose AsItem era) | |||||
Defined in Cardano.Ledger.Conway.Scripts | |||||
| Show (ConwayPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Conway.Scripts | |||||
| (Show (TxCert era), EraPParams era) ⇒ Show (ConwayPlutusPurpose AsIxItem era) | |||||
Defined in Cardano.Ledger.Conway.Scripts | |||||
| (Eq (TxCert era), EraPParams era) ⇒ Eq (ConwayPlutusPurpose AsItem era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods (==) ∷ ConwayPlutusPurpose AsItem era → ConwayPlutusPurpose AsItem era → Bool # (/=) ∷ ConwayPlutusPurpose AsItem era → ConwayPlutusPurpose AsItem era → Bool # | |||||
| Eq (ConwayPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods (==) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (/=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # | |||||
| (Eq (TxCert era), EraPParams era) ⇒ Eq (ConwayPlutusPurpose AsIxItem era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods (==) ∷ ConwayPlutusPurpose AsIxItem era → ConwayPlutusPurpose AsIxItem era → Bool # (/=) ∷ ConwayPlutusPurpose AsIxItem era → ConwayPlutusPurpose AsIxItem era → Bool # | |||||
| Ord (ConwayPlutusPurpose AsIx era) | |||||
Defined in Cardano.Ledger.Conway.Scripts Methods compare ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Ordering # (<) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (<=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (>) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # (>=) ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → Bool # max ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era # min ∷ ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era → ConwayPlutusPurpose AsIx era # | |||||
| (NoThunks (TxCert era), EraPParams era) ⇒ NoThunks (ConwayPlutusPurpose AsItem era) | |||||
| NoThunks (ConwayPlutusPurpose AsIx era) | |||||
| (NoThunks (TxCert era), EraPParams era) ⇒ NoThunks (ConwayPlutusPurpose AsIxItem era) | |||||
| Inject (ConwayPlutusPurpose f era) (DijkstraPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Dijkstra.Scripts Methods inject ∷ ConwayPlutusPurpose f era → DijkstraPlutusPurpose f era Source # | |||||
| type Rep (ConwayPlutusPurpose f era) | |||||
Defined in Cardano.Ledger.Conway.Scripts type Rep (ConwayPlutusPurpose f era) = D1 ('MetaData "ConwayPlutusPurpose" "Cardano.Ledger.Conway.Scripts" "cardano-ledger-conway-1.21.0.0-inplace" 'False) ((C1 ('MetaCons "ConwaySpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 TxIn))) :+: (C1 ('MetaCons "ConwayMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 PolicyID))) :+: C1 ('MetaCons "ConwayCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))))) :+: (C1 ('MetaCons "ConwayRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 RewardAccount))) :+: (C1 ('MetaCons "ConwayVoting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 Voter))) :+: C1 ('MetaCons "ConwayProposing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (ProposalProcedure era))))))) | |||||
Upgrade
binaryUpgradeTxWits ∷ (Era era, ToCBOR (TxWits (PreviousEra era)), DecCBOR (Annotator (TxWits era))) ⇒ TxWits (PreviousEra era) → Except DecoderError (TxWits era) Source #
Translate tx witnesses through its binary representation from previous to current era.
upgradeTxWits ∷ EraApi era ⇒ TxWits (PreviousEra era) → TxWits era Source #
Upgrade txWits from the previous era.
Warning - This may not preserve the underlying binary representation.
Use binaryUpgradeTxWits instead, if you need to preserve the serialised form.