plutus-ledger-api-1.69.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.V4.Data.Tx

Synopsis

Transactions

newtype TxId Source #

A transaction ID, i.e. the hash of a transaction. Hashed with BLAKE2b-256. 32 byte.

This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.

Constructors

TxId 

Instances

Instances details
IsString TxId Source #

from hex encoding

Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

fromString ∷ String → TxId Source #

Generic TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Associated Types

type Rep TxId ∷ Type → Type Source #

Methods

from ∷ TxId → Rep TxId x Source #

to ∷ Rep TxId x → TxId Source #

Show TxId Source #

using hex encoding

Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

showsPrec ∷ Int → TxId → ShowS Source #

show ∷ TxId → String Source #

showList ∷ [TxId] → ShowS Source #

NFData TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

rnf ∷ TxId → () Source #

Eq TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

(==) ∷ TxId → TxId → Bool Source #

(/=) ∷ TxId → TxId → Bool Source #

Ord TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

compare ∷ TxId → TxId → Ordering Source #

(<) ∷ TxId → TxId → Bool Source #

(<=) ∷ TxId → TxId → Bool Source #

(>) ∷ TxId → TxId → Bool Source #

(>=) ∷ TxId → TxId → Bool Source #

max ∷ TxId → TxId → TxId Source #

min ∷ TxId → TxId → TxId Source #

HasBlueprintDefinition TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Associated Types

type Unroll TxId ∷ [Type] Source #

Eq TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

(==) ∷ TxId → TxId → Bool Source #

FromData TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

ToData TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

UnsafeFromData TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Ord TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

compare ∷ TxId → TxId → Ordering Source #

(<) ∷ TxId → TxId → Bool Source #

(<=) ∷ TxId → TxId → Bool Source #

(>) ∷ TxId → TxId → Bool Source #

(>=) ∷ TxId → TxId → Bool Source #

max ∷ TxId → TxId → TxId Source #

min ∷ TxId → TxId → TxId Source #

Pretty TxId Source #

using hex encoding

Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

pretty ∷ TxId → Doc ann Source #

prettyList ∷ [TxId] → Doc ann Source #

HasBlueprintSchema TxId referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Methods

schema ∷ Schema referencedTypes Source #

Lift DefaultUni TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Typeable DefaultUni TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

type Rep TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

type Rep TxId = D1 ('MetaData "TxId" "PlutusLedgerApi.V3.Data.Tx" "plutus-ledger-api-1.69.0.0-inplace" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))
type Unroll TxId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Data.Tx

Transaction outputs

data TxOutRef Source #

Instances

Instances details
Generic TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Associated Types

type Rep TxOutRef ∷ Type → Type Source #

Show TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

NFData TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

rnf ∷ TxOutRef → () Source #

Eq TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Ord TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Eq TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

(==) ∷ TxOutRef → TxOutRef → Bool Source #

FromData TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

ToData TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

UnsafeFromData TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Pretty TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

pretty ∷ TxOutRef → Doc ann Source #

prettyList ∷ [TxOutRef] → Doc ann Source #

Lift DefaultUni TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Typeable DefaultUni TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

type Rep TxOutRef Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

type Rep TxOutRef = D1 ('MetaData "TxOutRef" "PlutusLedgerApi.V4.Data.Tx" "plutus-ledger-api-1.69.0.0-inplace" 'True) (C1 ('MetaCons "TxOutRef_6989586621680435011" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

pattern TxOutRef ∷ TxId → Integer → TxOutRef Source #

matchTxOutRef ∷ ∀ r. TxOutRef → (TxId → Integer → r) → r Source #

data OutputDatum Source #

The datum attached to an output: either nothing; a datum hash; or the datum itself (an "inline datum").

Instances

Instances details
Generic OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Associated Types

type Rep OutputDatum ∷ Type → Type Source #

Show OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

NFData OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Methods

rnf ∷ OutputDatum → () Source #

Eq OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Eq OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

FromData OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

ToData OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

UnsafeFromData OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Pretty OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Methods

pretty ∷ OutputDatum → Doc ann Source #

prettyList ∷ [OutputDatum] → Doc ann Source #

Lift DefaultUni OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

Typeable DefaultUni OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

type Rep OutputDatum Source # 
Instance details

Defined in PlutusLedgerApi.V2.Data.Tx

type Rep OutputDatum = D1 ('MetaData "OutputDatum" "PlutusLedgerApi.V2.Data.Tx" "plutus-ledger-api-1.69.0.0-inplace" 'True) (C1 ('MetaCons "OutputDatum_6989586621680419576" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

matchOutputDatum ∷ ∀ r. OutputDatum → r → (DatumHash → r) → (Datum → r) → r Source #

data TxOut Source #

Transaction output for Plutus V4.

Instances

Instances details
Generic TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Associated Types

type Rep TxOut ∷ Type → Type Source #

Methods

from ∷ TxOut → Rep TxOut x Source #

to ∷ Rep TxOut x → TxOut Source #

Show TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Eq TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

(==) ∷ TxOut → TxOut → Bool Source #

(/=) ∷ TxOut → TxOut → Bool Source #

Eq TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

(==) ∷ TxOut → TxOut → Bool Source #

FromData TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

ToData TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

UnsafeFromData TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Pretty TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Methods

pretty ∷ TxOut → Doc ann Source #

prettyList ∷ [TxOut] → Doc ann Source #

Lift DefaultUni TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

Typeable DefaultUni TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

type Rep TxOut Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Tx

type Rep TxOut = D1 ('MetaData "TxOut" "PlutusLedgerApi.V4.Data.Tx" "plutus-ledger-api-1.69.0.0-inplace" 'True) (C1 ('MetaCons "TxOut_6989586621680436113" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

matchTxOut ∷ ∀ r. TxOut → (Address → Value → OutputDatum → Maybe ScriptHash → r) → r Source #

txOutPubKey ∷ TxOut → Maybe PubKeyHash Source #

The public key attached to a TxOut, if there is one.

txOutScriptHash ∷ TxOut → Maybe ScriptHash Source #

The validator hash attached to a TxOut, if there is one.

isPubKeyOut ∷ TxOut → Bool Source #

Whether the output is a pay-to-pubkey output.

isPayToScriptOut ∷ TxOut → Bool Source #

Whether the output is a pay-to-script output.

pubKeyHashTxOut ∷ Value → PubKeyHash → TxOut Source #

Create a transaction output locked by a public key.