| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance
Contents
Synopsis
- data TranslationInstance era = TranslationInstance {
- tiProtVer ∷ ProtVer
- tiLanguage ∷ SupportedLanguage era
- tiUtxo ∷ UTxO era
- tiTx ∷ Tx 'TopTx era
- tiResult ∷ VersionedTxInfo
- deserializeTranslationInstances ∷ (DecCBOR (PParams era), DecCBOR (UTxO era), DecCBOR (Tx 'TopTx era), EraPlutusContext era) ⇒ ByteString → Either DecoderError [TranslationInstance era]
- data VersionedTxInfo
Documentation
data TranslationInstance era Source #
Represents arguments passed to alonzoTxInfo along with the produced result.
Constructors
| TranslationInstance | |
Fields
| |
Instances
deserializeTranslationInstances ∷ (DecCBOR (PParams era), DecCBOR (UTxO era), DecCBOR (Tx 'TopTx era), EraPlutusContext era) ⇒ ByteString → Either DecoderError [TranslationInstance era] Source #
data VersionedTxInfo Source #
Instances
| DecCBOR VersionedTxInfo Source # | |||||
| EncCBOR VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance Methods | |||||
| Generic VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance Associated Types
Methods from ∷ VersionedTxInfo → Rep VersionedTxInfo x # to ∷ Rep VersionedTxInfo x → VersionedTxInfo # | |||||
| Show VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance Methods showsPrec ∷ Int → VersionedTxInfo → ShowS # show ∷ VersionedTxInfo → String # showList ∷ [VersionedTxInfo] → ShowS # | |||||
| Eq VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance Methods (==) ∷ VersionedTxInfo → VersionedTxInfo → Bool # (/=) ∷ VersionedTxInfo → VersionedTxInfo → Bool # | |||||
| Serialise VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance Methods encode ∷ VersionedTxInfo → Encoding Source # decode ∷ Decoder s VersionedTxInfo Source # encodeList ∷ [VersionedTxInfo] → Encoding Source # decodeList ∷ Decoder s [VersionedTxInfo] Source # | |||||
| type Rep VersionedTxInfo Source # | |||||
Defined in Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance type Rep VersionedTxInfo = D1 ('MetaData "VersionedTxInfo" "Test.Cardano.Ledger.Alonzo.Translation.TranslationInstance" "cardano-ledger-alonzo-1.15.0.0-inplace-testlib" 'False) ((C1 ('MetaCons "TxInfoPV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo)) :+: C1 ('MetaCons "TxInfoPV2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo))) :+: (C1 ('MetaCons "TxInfoPV3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo)) :+: C1 ('MetaCons "TxInfoPV4" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo)))) | |||||
Orphan instances
| Serialise Address Source # | |
| Serialise ScriptPurpose Source # | |
Methods encode ∷ ScriptPurpose → Encoding Source # decode ∷ Decoder s ScriptPurpose Source # encodeList ∷ [ScriptPurpose] → Encoding Source # decodeList ∷ Decoder s [ScriptPurpose] Source # | |
| Serialise TxInInfo Source # | |
| Serialise TxInfo Source # | |
| Serialise Credential Source # | |
Methods encode ∷ Credential → Encoding Source # decode ∷ Decoder s Credential Source # encodeList ∷ [Credential] → Encoding Source # decodeList ∷ Decoder s [Credential] Source # | |
| Serialise StakingCredential Source # | |
Methods encode ∷ StakingCredential → Encoding Source # decode ∷ Decoder s StakingCredential Source # | |
| Serialise PubKeyHash Source # | |
Methods encode ∷ PubKeyHash → Encoding Source # decode ∷ Decoder s PubKeyHash Source # encodeList ∷ [PubKeyHash] → Encoding Source # decodeList ∷ Decoder s [PubKeyHash] Source # | |
| Serialise DCert Source # | |
| Serialise DatumHash Source # | |
| Serialise ScriptHash Source # | |
Methods encode ∷ ScriptHash → Encoding Source # decode ∷ Decoder s ScriptHash Source # encodeList ∷ [ScriptHash] → Encoding Source # decodeList ∷ Decoder s [ScriptHash] Source # | |
| Serialise POSIXTime Source # | |
| Serialise TxId Source # | |
| Serialise TxOut Source # | |
| Serialise TxOutRef Source # | |
| Serialise CurrencySymbol Source # | |
Methods encode ∷ CurrencySymbol → Encoding Source # decode ∷ Decoder s CurrencySymbol Source # encodeList ∷ [CurrencySymbol] → Encoding Source # decodeList ∷ Decoder s [CurrencySymbol] Source # | |
| Serialise Lovelace Source # | |
| Serialise TokenName Source # | |
| Serialise Value Source # | |
| Serialise TxInInfo Source # | |
| Serialise TxInfo Source # | |
| Serialise OutputDatum Source # | |
Methods encode ∷ OutputDatum → Encoding Source # decode ∷ Decoder s OutputDatum Source # encodeList ∷ [OutputDatum] → Encoding Source # decodeList ∷ Decoder s [OutputDatum] Source # | |
| Serialise TxOut Source # | |
| Serialise ChangedParameters Source # | |
Methods encode ∷ ChangedParameters → Encoding Source # decode ∷ Decoder s ChangedParameters Source # | |
| Serialise ColdCommitteeCredential Source # | |
| Serialise Committee Source # | |
| Serialise Constitution Source # | |
Methods encode ∷ Constitution → Encoding Source # decode ∷ Decoder s Constitution Source # encodeList ∷ [Constitution] → Encoding Source # decodeList ∷ Decoder s [Constitution] Source # | |
| Serialise DRep Source # | |
| Serialise DRepCredential Source # | |
Methods encode ∷ DRepCredential → Encoding Source # decode ∷ Decoder s DRepCredential Source # encodeList ∷ [DRepCredential] → Encoding Source # decodeList ∷ Decoder s [DRepCredential] Source # | |
| Serialise Delegatee Source # | |
| Serialise GovernanceAction Source # | |
Methods encode ∷ GovernanceAction → Encoding Source # decode ∷ Decoder s GovernanceAction Source # encodeList ∷ [GovernanceAction] → Encoding Source # decodeList ∷ Decoder s [GovernanceAction] Source # | |
| Serialise GovernanceActionId Source # | |
Methods encode ∷ GovernanceActionId → Encoding Source # decode ∷ Decoder s GovernanceActionId Source # | |
| Serialise HotCommitteeCredential Source # | |
| Serialise ProposalProcedure Source # | |
Methods encode ∷ ProposalProcedure → Encoding Source # decode ∷ Decoder s ProposalProcedure Source # | |
| Serialise ProtocolVersion Source # | |
Methods encode ∷ ProtocolVersion → Encoding Source # decode ∷ Decoder s ProtocolVersion Source # encodeList ∷ [ProtocolVersion] → Encoding Source # decodeList ∷ Decoder s [ProtocolVersion] Source # | |
| Serialise ScriptPurpose Source # | |
Methods encode ∷ ScriptPurpose → Encoding Source # decode ∷ Decoder s ScriptPurpose Source # encodeList ∷ [ScriptPurpose] → Encoding Source # decodeList ∷ Decoder s [ScriptPurpose] Source # | |
| Serialise TxCert Source # | |
| Serialise TxInInfo Source # | |
| Serialise TxInfo Source # | |
| Serialise Vote Source # | |
| Serialise Voter Source # | |
| Serialise MintValue Source # | |
| Serialise TxId Source # | |
| Serialise TxOutRef Source # | |
| Serialise BuiltinData Source # | |
Methods encode ∷ BuiltinData → Encoding Source # decode ∷ Decoder s BuiltinData Source # encodeList ∷ [BuiltinData] → Encoding Source # decodeList ∷ Decoder s [BuiltinData] Source # | |
| Serialise Rational Source # | |
| Serialise a ⇒ Serialise (Extended a) Source # | |
| Serialise a ⇒ Serialise (Interval a) Source # | |
| Serialise a ⇒ Serialise (LowerBound a) Source # | |
Methods encode ∷ LowerBound a → Encoding Source # decode ∷ Decoder s (LowerBound a) Source # encodeList ∷ [LowerBound a] → Encoding Source # decodeList ∷ Decoder s [LowerBound a] Source # | |
| Serialise a ⇒ Serialise (UpperBound a) Source # | |
Methods encode ∷ UpperBound a → Encoding Source # decode ∷ Decoder s (UpperBound a) Source # encodeList ∷ [UpperBound a] → Encoding Source # decodeList ∷ Decoder s [UpperBound a] Source # | |
| (Serialise k, Serialise v) ⇒ Serialise (Map k v) Source # | |