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, IsConwayUniv fn, HasSpec fn (TxOut era), HasSpec fn (TxCert era)) ⇒ HasSpec fn (AllegraTxBody era) Source # 
Instance details

Associated Types

type TypeSpec fn (AllegraTxBody era) Source #

type Prerequisites fn (AllegraTxBody era) Source #

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

Associated Types

type TypeSpec fn (AlonzoTxBody era) Source #

type Prerequisites fn (AlonzoTxBody era) Source #

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

Associated Types

type TypeSpec fn (BabbageTxBody era) Source #

type Prerequisites fn (BabbageTxBody era) Source #

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

Associated Types

type TypeSpec fn (MaryTxBody era) Source #

type Prerequisites fn (MaryTxBody era) Source #

(EraSpecPParams era, IsConwayUniv fn) ⇒ HasSpec fn (Update era) Source # 
Instance details

Associated Types

type TypeSpec fn (Update era) Source #

type Prerequisites fn (Update era) Source #

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

Associated Types

type TypeSpec fn (ShelleyTxBody era) Source #

type Prerequisites fn (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 #

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 #