cardano-ledger-byron-1.0.2.0: The blockchain layer of Cardano during the Byron era
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Chain.UTxO

Synopsis

Documentation

data TxValidationMode Source #

Indicates what sort of transaction validation should be performed.

Constructors

TxValidation

Perform all transaction validations.

TxValidationNoCrypto

Because we've already validated this transaction against some ledger state, we know that cryptographic validation has passed. However, we should still perform all of the other non-cryptographic checks since we're validating against a potentially dfferent ledger state.

NoTxValidation

No validations should be performed as we have already validated this transaction against this very same ledger state.

data UTxOConfiguration Source #

Additional configuration for ledger validation.

Constructors

UTxOConfiguration 

Fields

Instances

Instances details
Generic UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

Associated Types

type Rep UTxOConfigurationTypeType Source #

Show UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

FromCBOR UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

ToCBOR UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

DecCBOR UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

EncCBOR UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

Eq UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

NoThunks UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

type Rep UTxOConfiguration Source # 
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

type Rep UTxOConfiguration = D1 ('MetaData "UTxOConfiguration" "Cardano.Chain.UTxO.UTxOConfiguration" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "UTxOConfiguration" 'PrefixI 'True) (S1 ('MetaSel ('Just "tcAssetLockedSrcAddrs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set CompactAddress))))

type TxWitness = Vector TxInWitness Source #

A witness is a proof that a transaction is allowed to spend the funds it spends (by providing signatures, redeeming scripts, etc). A separate proof is provided for each input.

data TxInWitness Source #

A witness for a single input

Constructors

VKWitness !VerificationKey !TxSig

VKWitness twKey twSig

RedeemWitness !RedeemVerificationKey !(RedeemSignature TxSigData)

RedeemWitness twRedeemKey twRedeemSig

Instances

Instances details
ToJSON TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Generic TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Associated Types

type Rep TxInWitnessTypeType Source #

Show TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

FromCBOR TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToCBOR TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Methods

toCBORTxInWitnessEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxInWitnessSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxInWitness] → Size Source #

DecCBOR TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

EncCBOR TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Methods

encCBORTxInWitnessEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxInWitnessSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxInWitness] → Size Source #

NFData TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Methods

rnfTxInWitness → () Source #

Buildable TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Eq TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxInWitness Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

newtype TxSigData Source #

Data that is being signed when creating a TxSig

Constructors

TxSigData 

Fields

Instances

Instances details
ToJSON TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Generic TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Associated Types

type Rep TxSigDataTypeType Source #

Show TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

FromCBOR TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToCBOR TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Methods

toCBORTxSigDataEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxSigDataSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxSigData] → Size Source #

DecCBOR TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

EncCBOR TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Methods

encCBORTxSigDataEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxSigDataSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxSigData] → Size Source #

Eq TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxSigData Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxSigData = D1 ('MetaData "TxSigData" "Cardano.Chain.UTxO.TxWitness" "cardano-ledger-byron-1.0.2.0-inplace" 'True) (C1 ('MetaCons "TxSigData" 'PrefixI 'True) (S1 ('MetaSel ('Just "txSigTxHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash Tx))))

data TxProof Source #

Constructors

TxProof 

Instances

Instances details
ToJSON TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Generic TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Associated Types

type Rep TxProofTypeType Source #

Methods

fromTxProofRep TxProof x Source #

toRep TxProof x → TxProof Source #

Show TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

FromCBOR TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

ToCBOR TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Methods

toCBORTxProofEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxProofSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxProof] → Size Source #

DecCBOR TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

EncCBOR TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Methods

encCBORTxProofEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxProofSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxProof] → Size Source #

NFData TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Methods

rnfTxProof → () Source #

Buildable TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Methods

buildTxProofBuilder Source #

Eq TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Methods

(==)TxProofTxProofBool Source #

(/=)TxProofTxProofBool Source #

NoThunks TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

type Rep TxProof Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxProof

type Rep TxProof = D1 ('MetaData "TxProof" "Cardano.Chain.UTxO.TxProof" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "TxProof" 'PrefixI 'True) (S1 ('MetaSel ('Just "txpNumber") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "txpRoot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MerkleRoot Tx)) :*: S1 ('MetaSel ('Just "txpWitnessesHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash [TxWitness])))))

mkTxProofTxPayloadTxProof Source #

Construct TxProof which proves given TxPayload

This will construct a Merkle tree, which can be very expensive. Use with care.

type TxPayload = ATxPayload () Source #

Payload of UTxO component which is part of the block body

newtype ATxPayload a Source #

Constructors

ATxPayload 

Fields

Instances

Instances details
Functor ATxPayload Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Methods

fmap ∷ (a → b) → ATxPayload a → ATxPayload b Source #

(<$) ∷ a → ATxPayload b → ATxPayload a Source #

FromCBOR TxPayload Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

ToCBOR TxPayload Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Methods

toCBORTxPayloadEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxPayloadSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxPayload] → Size Source #

DecCBOR TxPayload Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

EncCBOR TxPayload Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Methods

encCBORTxPayloadEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxPayloadSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxPayload] → Size Source #

ToJSON a ⇒ ToJSON (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Generic (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Associated Types

type Rep (ATxPayload a) ∷ TypeType Source #

Methods

fromATxPayload a → Rep (ATxPayload a) x Source #

toRep (ATxPayload a) x → ATxPayload a Source #

Show a ⇒ Show (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

FromCBOR (ATxPayload ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

DecCBOR (ATxPayload ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

NFData a ⇒ NFData (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Methods

rnfATxPayload a → () Source #

Eq a ⇒ Eq (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Methods

(==)ATxPayload a → ATxPayload a → Bool Source #

(/=)ATxPayload a → ATxPayload a → Bool Source #

type Rep (ATxPayload a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

type Rep (ATxPayload a) = D1 ('MetaData "ATxPayload" "Cardano.Chain.UTxO.TxPayload" "cardano-ledger-byron-1.0.2.0-inplace" 'True) (C1 ('MetaCons "ATxPayload" 'PrefixI 'True) (S1 ('MetaSel ('Just "aUnTxPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ATxAux a])))

type TxAux = ATxAux () Source #

Transaction + auxiliary data

data ATxAux a Source #

Constructors

ATxAux 

Fields

Instances

Instances details
Functor ATxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

fmap ∷ (a → b) → ATxAux a → ATxAux b Source #

(<$) ∷ a → ATxAux b → ATxAux a Source #

FromCBOR TxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

ToCBOR TxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

toCBORTxAuxEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxAuxSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxAux] → Size Source #

DecCBOR TxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

EncCBOR TxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

encCBORTxAuxEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxAuxSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxAux] → Size Source #

Buildable TxAux Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

buildTxAuxBuilder Source #

ToJSON a ⇒ ToJSON (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Generic (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Associated Types

type Rep (ATxAux a) ∷ TypeType Source #

Methods

fromATxAux a → Rep (ATxAux a) x Source #

toRep (ATxAux a) x → ATxAux a Source #

Show a ⇒ Show (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

showsPrecIntATxAux a → ShowS Source #

showATxAux a → String Source #

showList ∷ [ATxAux a] → ShowS Source #

FromCBOR (ATxAux ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Decoded (ATxAux ByteString) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Associated Types

type BaseType (ATxAux ByteString) Source #

DecCBOR (ATxAux ByteSpan) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

NFData a ⇒ NFData (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

rnfATxAux a → () Source #

Eq a ⇒ Eq (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

(==)ATxAux a → ATxAux a → Bool Source #

(/=)ATxAux a → ATxAux a → Bool Source #

type Rep (ATxAux a) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

type Rep (ATxAux a) = D1 ('MetaData "ATxAux" "Cardano.Chain.UTxO.TxAux" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "ATxAux" 'PrefixI 'True) (S1 ('MetaSel ('Just "aTaTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Annotated Tx a)) :*: (S1 ('MetaSel ('Just "aTaWitness") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Annotated TxWitness a)) :*: S1 ('MetaSel ('Just "aTaAnnotation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a))))
type BaseType (ATxAux ByteString) Source # 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

taTxATxAux a → Tx Source #

txaFFormat r (TxAux → r) Source #

Specialized formatter for TxAux

data Tx Source #

Transaction

NB: transaction witnesses are stored separately

Constructors

UnsafeTx 

Fields

Instances

Instances details
ToJSON Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep TxTypeType Source #

Methods

fromTxRep Tx x Source #

toRep Tx x → Tx Source #

Show Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

showsPrecIntTxShowS Source #

showTxString Source #

showList ∷ [Tx] → ShowS Source #

FromCBOR Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

toCBORTxEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Tx] → Size Source #

DecCBOR Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

EncCBOR Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

encCBORTxEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Tx] → Size Source #

NFData Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

rnfTx → () Source #

Buildable Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

buildTxBuilder Source #

Eq Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

(==)TxTxBool Source #

(/=)TxTxBool Source #

Ord Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

compareTxTxOrdering Source #

(<)TxTxBool Source #

(<=)TxTxBool Source #

(>)TxTxBool Source #

(>=)TxTxBool Source #

maxTxTxTx Source #

minTxTxTx Source #

type Rep Tx Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep Tx = D1 ('MetaData "Tx" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "UnsafeTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxIn)) :*: (S1 ('MetaSel ('Just "txOutputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxOut)) :*: S1 ('MetaSel ('Just "txAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAttributes))))

txFFormat r (Tx → r) Source #

Specialized formatter for Tx

type TxId = Hash Tx Source #

Represents transaction identifier as Hash of Tx

type TxAttributes = Attributes () Source #

Represents transaction attributes: map from 1-byte integer to arbitrary-type value. To be used for extending transaction with new fields via softfork.

data TxIn Source #

Transaction arbitrary input

Constructors

TxInUtxo TxId Word16

TxId = Which transaction's output is used | Word16 = Index of the output in transaction's outputs

Instances

Instances details
ToJSON TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep TxInTypeType Source #

Methods

fromTxInRep TxIn x Source #

toRep TxIn x → TxIn Source #

Show TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

showsPrecIntTxInShowS Source #

showTxInString Source #

showList ∷ [TxIn] → ShowS Source #

FromCBOR TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

toCBORTxInEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxInSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxIn] → Size Source #

DecCBOR TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

EncCBOR TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

encCBORTxInEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxInSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxIn] → Size Source #

NFData TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

rnfTxIn → () Source #

Buildable TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

buildTxInBuilder Source #

Eq TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

(==)TxInTxInBool Source #

(/=)TxInTxInBool Source #

Ord TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

compareTxInTxInOrdering Source #

(<)TxInTxInBool Source #

(<=)TxInTxInBool Source #

(>)TxInTxInBool Source #

(>=)TxInTxInBool Source #

maxTxInTxInTxIn Source #

minTxInTxInTxIn Source #

HeapWords TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

heapWordsTxInInt Source #

type Rep TxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep TxIn = D1 ('MetaData "TxIn" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "TxInUtxo" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

data TxOut Source #

Transaction output

Constructors

TxOut 

Instances

Instances details
ToJSON TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep TxOutTypeType Source #

Methods

fromTxOutRep TxOut x Source #

toRep TxOut x → TxOut Source #

Show TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

FromCBOR TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

toCBORTxOutEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy TxOutSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxOut] → Size Source #

DecCBOR TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

EncCBOR TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

encCBORTxOutEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxOutSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxOut] → Size Source #

NFData TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

rnfTxOut → () Source #

Buildable TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

buildTxOutBuilder Source #

Eq TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

(==)TxOutTxOutBool Source #

(/=)TxOutTxOutBool Source #

Ord TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

compareTxOutTxOutOrdering Source #

(<)TxOutTxOutBool Source #

(<=)TxOutTxOutBool Source #

(>)TxOutTxOutBool Source #

(>=)TxOutTxOutBool Source #

maxTxOutTxOutTxOut Source #

minTxOutTxOutTxOut Source #

HeapWords TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

heapWordsTxOutInt Source #

type Rep TxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep TxOut = D1 ('MetaData "TxOut" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "TxOut" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: S1 ('MetaSel ('Just "txOutValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Lovelace)))

genesisUtxoConfigUTxO Source #

Create initial UTxO from balances defined in the genesis config

data CompactTxIn Source #

A compact in-memory representation for a TxIn.

Convert using toCompactTxIn and fromCompactTxIn.

Instances

Instances details
Generic CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Associated Types

type Rep CompactTxInTypeType Source #

Show CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

toCBORCompactTxInEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy CompactTxInSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [CompactTxIn] → Size Source #

DecCBOR CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

EncCBOR CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

encCBORCompactTxInEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy CompactTxInSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [CompactTxIn] → Size Source #

NFData CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

rnfCompactTxIn → () Source #

Eq CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxIn Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxIn = D1 ('MetaData "CompactTxIn" "Cardano.Chain.UTxO.Compact" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "CompactTxInUtxo" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CompactTxId) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))

data CompactTxId Source #

A compact in-memory representation for a TxId.

Convert using toCompactTxId and fromCompactTxId.

Compared to a normal TxId, this takes 5 heap words rather than 12.

Instances

Instances details
Generic CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Associated Types

type Rep CompactTxIdTypeType Source #

Show CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

toCBORCompactTxIdEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy CompactTxIdSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [CompactTxId] → Size Source #

DecCBOR CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

EncCBOR CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

encCBORCompactTxIdEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy CompactTxIdSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [CompactTxId] → Size Source #

NFData CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

rnfCompactTxId → () Source #

Eq CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxId Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

data CompactTxOut Source #

A compact in-memory representation for a TxOut.

Convert using toCompactTxOut and fromCompactTxOut.

Instances

Instances details
Generic CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Associated Types

type Rep CompactTxOutTypeType Source #

Show CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

toCBORCompactTxOutEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy CompactTxOutSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [CompactTxOut] → Size Source #

DecCBOR CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

EncCBOR CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

NFData CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Methods

rnfCompactTxOut → () Source #

Eq CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxOut Source # 
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxOut = D1 ('MetaData "CompactTxOut" "Cardano.Chain.UTxO.Compact" "cardano-ledger-byron-1.0.2.0-inplace" 'False) (C1 ('MetaCons "CompactTxOut" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CompactAddress) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Lovelace)))