cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.Conway.Instances.TxBody

Synopsis

Documentation

type ShelleyTxBodyTypes era = '[Set TxIn, [TxOut era], [TxCert era], Map RewardAccount Coin, Coin, SlotNo, Maybe (Update era), Maybe TxAuxDataHash] Source #

This is an abstraction of the Pattern ShelleyTxBody, that uses [x] instead of (StrictSeq x) and (Maybe x) instead of (StrictMaybe x). It transforms bewtween the two, in the toSimpleRep and fromSimpleRep methods. This makes it much easier to write Specifications, because the Constrained packaage knows about Lists and Maybe.

fromShelleyBody ∷ ∀ era. EraTxBody era ⇒ ShelleyTxBody era → TxBody era Source #

type AllegraTxBodyTypes era = '[Set TxIn, [TxOut era], [TxCert era], Map RewardAccount Coin, Coin, ValidityInterval, Maybe (Update era), Maybe TxAuxDataHash] Source #

This is an abstraction of the Pattern AllegraTxBody, that uses [x] instead of (StrictSeq x) and (Maybe x) instead of (StrictMaybe x). It transforms bewtween the two, in the toSimpleRep and fromSimpleRep methods. This makes it much easier to write Specifications, because the Constrained packaage knows about Lists and Maybe.

fromAllegraBody ∷ ∀ era. AllegraEraTxBody era ⇒ AllegraTxBody era → TxBody era Source #

type MaryTxBodyTypes era = '[Set TxIn, [TxOut era], [TxCert era], Map RewardAccount Coin, Coin, ValidityInterval, Maybe (Update era), Maybe TxAuxDataHash, MultiAsset] Source #

This is an abstraction of the Pattern MaryTxBody, that uses [x] instead of (StrictSeq x) and (Maybe x) instead of (StrictMaybe x). It transforms between the abstractions and the real types in the toSimpleRep and fromSimpleRep methods. This makes it much easier to write Specifications, because the Constrained packaage knows about Lists and Maybe.

fromMaryBody ∷ ∀ era. MaryEraTxBody era ⇒ MaryTxBody era → TxBody era Source #

type AlonzoTxBodyTypes era = '[Set TxIn, Set TxIn, [TxOut era], [TxCert era], Map RewardAccount Coin, Coin, ValidityInterval, Maybe (Update era), Set (KeyHash 'Witness), MultiAsset, Maybe ScriptIntegrityHash, Maybe TxAuxDataHash, Maybe Network] Source #

This is an abstraction of the Pattern AlonzoTxBody, that uses [x] instead of (StrictSeq x) and (Maybe x) instead of (StrictMaybe x). It transforms between the abstractions and the real types in the toSimpleRep and fromSimpleRep methods. This makes it much easier to write Specifications, because the Constrained packaage knows about Lists and Maybe.

fromAlonzoBody ∷ ∀ era. AlonzoEraTxBody era ⇒ AlonzoTxBody era → TxBody era Source #

type BabbageTxBodyTypes era = '[Set TxIn, Set TxIn, Set TxIn, [Sized (TxOut era)], Maybe (Sized (TxOut era)), Maybe Coin, [TxCert era], Map RewardAccount Coin, Coin, ValidityInterval, Maybe (Update era), Set (KeyHash 'Witness), MultiAsset, Maybe ScriptIntegrityHash, Maybe TxAuxDataHash, Maybe Network] Source #

This is an abstraction of the Pattern BabbageTxBody, that uses [x] instead of (StrictSeq x) and (Maybe x) instead of (StrictMaybe x). It transforms between the abstractions and the real types in the toSimpleRep and fromSimpleRep methods. This makes it much easier to write Specifications, because the Constrained packaage knows about Lists and Maybe.

fromBabbageBody ∷ ∀ era. BabbageEraTxBody era ⇒ BabbageTxBody era → TxBody era Source #

Orphan instances

(EraSpecPParams era, HasSpec (TxOut era), HasSpec (TxCert era)) ⇒ HasSpec (AllegraTxBody era) Source # 
Instance details

Associated Types

type TypeSpec (AllegraTxBody era) Source #

type Prerequisites (AllegraTxBody era) Source #

(EraSpecPParams era, HasSpec (TxOut era), HasSpec (TxCert era)) ⇒ HasSpec (AlonzoTxBody era) Source # 
Instance details

Associated Types

type TypeSpec (AlonzoTxBody era) Source #

type Prerequisites (AlonzoTxBody era) Source #

(EraSpecPParams era, BabbageEraTxBody era, HasSpec (TxOut era), HasSpec (TxCert era)) ⇒ HasSpec (BabbageTxBody era) Source # 
Instance details

Associated Types

type TypeSpec (BabbageTxBody era) Source #

type Prerequisites (BabbageTxBody era) Source #

(EraSpecPParams era, HasSpec (TxOut era), HasSpec (TxCert era)) ⇒ HasSpec (MaryTxBody era) Source # 
Instance details

Associated Types

type TypeSpec (MaryTxBody era) Source #

type Prerequisites (MaryTxBody era) Source #

EraSpecPParams era ⇒ HasSpec (Update era) Source # 
Instance details

Associated Types

type TypeSpec (Update era) Source #

type Prerequisites (Update era) Source #

(EraSpecPParams era, HasSpec (TxOut era), HasSpec (TxCert era)) ⇒ HasSpec (ShelleyTxBody era) Source # 
Instance details

Associated Types

type TypeSpec (ShelleyTxBody era) Source #

type Prerequisites (ShelleyTxBody era) Source #

(EraTxOut era, EraTxCert era) ⇒ HasSimpleRep (AllegraTxBody era) Source # 
Instance details

Associated Types

type SimpleRep (AllegraTxBody era) Source #

type TheSop (AllegraTxBody era) ∷ [Type] Source #

(EraTxOut era, EraTxCert era) ⇒ HasSimpleRep (AlonzoTxBody era) Source # 
Instance details

Associated Types

type SimpleRep (AlonzoTxBody era) Source #

type TheSop (AlonzoTxBody era) ∷ [Type] Source #

(EraTxOut era, EraTxCert era, BabbageEraTxBody era) ⇒ HasSimpleRep (BabbageTxBody era) Source # 
Instance details

Associated Types

type SimpleRep (BabbageTxBody era) Source #

type TheSop (BabbageTxBody era) ∷ [Type] Source #

(EraTxOut era, EraTxCert era) ⇒ HasSimpleRep (MaryTxBody era) Source # 
Instance details

Associated Types

type SimpleRep (MaryTxBody era) Source #

type TheSop (MaryTxBody era) ∷ [Type] Source #

Typeable era ⇒ HasSimpleRep (Update era) Source # 
Instance details

Associated Types

type SimpleRep (Update era) Source #

type TheSop (Update era) ∷ [Type] Source #

(EraTxOut era, EncCBOR (TxCert era)) ⇒ HasSimpleRep (ShelleyTxBody era) Source # 
Instance details

Associated Types

type SimpleRep (ShelleyTxBody era) Source #

type TheSop (ShelleyTxBody era) ∷ [Type] Source #