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

Test.Cardano.Ledger.Generic.Fields

Documentation

data TxField era Source #

Bundled Patterns

pattern AuxData' ∷ [TxAuxData era] → TxField era 
pattern Valid'BoolTxField era 

Instances

Instances details
Generic (TxField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Associated Types

type Rep (TxField era) ∷ TypeType #

Methods

fromTxField era → Rep (TxField era) x #

toRep (TxField era) x → TxField era #

(Era era, ToExpr (TxBody era), ToExpr (TxWits era), ToExpr (Script era), ToExpr (Redeemers era), ToExpr (TxAuxData era), ToExpr (TxOut era), ToExpr (TxCert era), ToExpr (PParamsHKD StrictMaybe era)) ⇒ ToExpr (TxField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Methods

toExprTxField era → Expr Source #

listToExpr ∷ [TxField era] → Expr Source #

type Rep (TxField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

data TxBodyField era Source #

Bundled Patterns

pattern Inputs' ∷ [TxIn] → TxBodyField era 
pattern Collateral' ∷ [TxIn] → TxBodyField era 
pattern RefInputs' ∷ [TxIn] → TxBodyField era 
pattern Outputs' ∷ [TxOut era] → TxBodyField era 
pattern Certs' ∷ [TxCert era] → TxBodyField era 
pattern CollateralReturn' ∷ [TxOut era] → TxBodyField era 
pattern Update' ∷ [Update era] → TxBodyField era 
pattern ReqSignerHashes' ∷ [KeyHash 'Witness] → TxBodyField era 
pattern WppHash' ∷ [ScriptIntegrityHash] → TxBodyField era 
pattern AdHash' ∷ [TxAuxDataHash] → TxBodyField era 
pattern Txnetworkid' ∷ [Network] → TxBodyField era 

Instances

Instances details
Generic (TxBodyField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Associated Types

type Rep (TxBodyField era) ∷ TypeType #

Methods

fromTxBodyField era → Rep (TxBodyField era) x #

toRep (TxBodyField era) x → TxBodyField era #

(Era era, ToExpr (TxOut era), ToExpr (TxCert era), ToExpr (PParamsHKD StrictMaybe era)) ⇒ ToExpr (TxBodyField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Methods

toExprTxBodyField era → Expr Source #

listToExpr ∷ [TxBodyField era] → Expr Source #

type Rep (TxBodyField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

type Rep (TxBodyField era) = D1 ('MetaData "TxBodyField" "Test.Cardano.Ledger.Generic.Fields" "cardano-ledger-test-9.9.9.9-inplace" 'False) ((((C1 ('MetaCons "Inputs" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set TxIn))) :+: C1 ('MetaCons "Collateral" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set TxIn)))) :+: (C1 ('MetaCons "RefInputs" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set TxIn))) :+: (C1 ('MetaCons "Outputs" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictSeq (TxOut era)))) :+: C1 ('MetaCons "CollateralReturn" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe (TxOut era))))))) :+: ((C1 ('MetaCons "TotalCol" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe Coin))) :+: C1 ('MetaCons "Certs" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictSeq (TxCert era))))) :+: (C1 ('MetaCons "Withdrawals'" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Withdrawals)) :+: (C1 ('MetaCons "Txfee" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin)) :+: C1 ('MetaCons "Vldt" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValidityInterval)))))) :+: (((C1 ('MetaCons "TTL" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo)) :+: C1 ('MetaCons "Update" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe (Update era))))) :+: (C1 ('MetaCons "ReqSignerHashes" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set (KeyHash 'Witness)))) :+: (C1 ('MetaCons "Mint" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MultiAsset)) :+: C1 ('MetaCons "WppHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe ScriptIntegrityHash)))))) :+: ((C1 ('MetaCons "AdHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe TxAuxDataHash))) :+: (C1 ('MetaCons "Txnetworkid" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe Network))) :+: C1 ('MetaCons "ProposalProc" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OSet (ProposalProcedure era)))))) :+: (C1 ('MetaCons "VotingProc" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VotingProcedures era))) :+: (C1 ('MetaCons "CurrentTreasuryValue" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe Coin))) :+: C1 ('MetaCons "TreasuryDonation" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin)))))))

data WitnessesField era Source #

Bundled Patterns

pattern AddrWits'Era era ⇒ [WitVKey 'Witness] → WitnessesField era 
pattern BootWits'Era era ⇒ [BootstrapWitness] → WitnessesField era 
pattern ScriptWits' ∷ ∀ era. EraScript era ⇒ [Script era] → WitnessesField era 
pattern DataWits'Era era ⇒ [Data era] → WitnessesField era 

Instances

Instances details
Generic (WitnessesField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Associated Types

type Rep (WitnessesField era) ∷ TypeType #

Methods

fromWitnessesField era → Rep (WitnessesField era) x #

toRep (WitnessesField era) x → WitnessesField era #

Reflect era ⇒ Show (WitnessesField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

Methods

showsPrecIntWitnessesField era → ShowS #

showWitnessesField era → String #

showList ∷ [WitnessesField era] → ShowS #

(ToExpr (Script era), ToExpr (TxDats era), ToExpr (Redeemers era)) ⇒ ToExpr (WitnessesField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

type Rep (WitnessesField era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Fields

data PParamsField era Source #

Constructors

MinfeeA Coin 
MinfeeB Coin

The constant factor for the minimum fee calculation

MaxBBSize Word32

Maximal block body size

MaxTxSize Word32

Maximal transaction size

MaxBHSize Word16

Maximal block header size

KeyDeposit Coin

The amount of a key registration deposit

PoolDeposit Coin

The amount of a pool registration deposit

EMax EpochInterval

epoch bound on pool retirement

NOpt Word16

Desired number of pools

A0 NonNegativeInterval

Pool influence

Rho UnitInterval

Monetary expansion

Tau UnitInterval

Treasury expansion

D UnitInterval

Decentralization parameter

ExtraEntropy Nonce

Extra entropy

ProtocolVersion ProtVer

Protocol version

MinPoolCost Coin

Minimum Stake Pool Cost

MinUTxOValue Coin

Minimum Lovelace in a UTxO deprecated by AdaPerUTxOWord

CoinPerUTxOWord CoinPerWord

Cost in ada per 8 bytes of UTxO storage instead of _minUTxOValue

CoinPerUTxOByte CoinPerByte

Cost in ada per 1 byte of UTxO storage instead of _coinsPerUTxOWord

Costmdls CostModels

Cost models for non-native script languages

Prices Prices

Prices of execution units for non-native script languages

MaxTxExUnits ExUnits

Max total script execution resources units allowed per tx

MaxBlockExUnits ExUnits

Max total script execution resources units allowed per block

MaxValSize Natural

Max size of a Value in an output

CollateralPercentage Natural

The scaling percentage of the collateral relative to the fee

MaxCollateralInputs Natural

Maximum number of collateral inputs allowed in a transaction

PoolVotingThreshold PoolVotingThresholds

These are new to Conway

DRepVotingThreshold DRepVotingThresholds 
MinCommitteeSize Natural 
CommitteeTermLimit EpochInterval 
GovActionExpiration EpochInterval 
GovActionDeposit Coin 
DRepDeposit Coin 
DRepActivity EpochInterval 

data TxOutField era Source #

Bundled Patterns

pattern DHash' ∷ [DataHash] → TxOutField era 
pattern RefScript' ∷ [Script era] → TxOutField era 

initialTx ∷ ∀ era. Proof era → Tx era Source #

initialTxOutProof era → TxOut era Source #

abstractTxProof era → Tx era → [TxField era] Source #

abstractTxBodyProof era → TxBody era → [TxBodyField era] Source #

abstractTxOutEra era ⇒ Proof era → TxOut era → [TxOutField era] Source #

abstractPParamsProof era → PParams era → [PParamsField era] Source #