| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V4.Tx
Contents
Synopsis
- newtype TxId = TxId {}
- data TxOutRef where
- data OutputDatum
- data TxOut = TxOut {}
- txOutPubKey :: TxOut -> Maybe PubKeyHash
- txOutScriptHash :: TxOut -> Maybe ScriptHash
- isPubKeyOut :: TxOut -> Bool
- isPayToScriptOut :: TxOut -> Bool
- pubKeyHashTxOut :: Value -> PubKeyHash -> TxOut
Transactions
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 | |
Fields | |
Instances
Transaction outputs
Instances
| Generic TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Associated Types
| |||||
| Show TxOutRef Source # | |||||
| NFData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| Eq TxOutRef Source # | |||||
| Ord TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| HasBlueprintDefinition TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| FromData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |||||
| ToData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |||||
| UnsafeFromData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods | |||||
| Pretty TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| HasBlueprintSchema TxOutRef referencedTypes => HasBlueprintSchema TxOutRef referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| Typeable DefaultUni TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| type Rep TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| type Unroll TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
data OutputDatum Source #
The datum attached to an output: either nothing; a datum hash; or the datum itself (an "inline datum").
Constructors
| NoOutputDatum | |
| OutputDatumHash DatumHash | |
| OutputDatum Datum |
Instances
| Generic OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Associated Types
Methods from :: OutputDatum -> Rep OutputDatum x Source # to :: Rep OutputDatum x -> OutputDatum Source # | |||||
| Show OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx | |||||
| NFData OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods rnf :: OutputDatum -> () Source # | |||||
| Eq OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods (==) :: OutputDatum -> OutputDatum -> Bool Source # (/=) :: OutputDatum -> OutputDatum -> Bool Source # | |||||
| HasBlueprintDefinition OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods (==) :: OutputDatum -> OutputDatum -> Bool | |||||
| FromData OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods | |||||
| ToData OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods toBuiltinData :: OutputDatum -> BuiltinData # | |||||
| UnsafeFromData OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods | |||||
| Pretty OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx | |||||
| (HasSchemaDefinition DatumHash referencedTypes, HasSchemaDefinition Datum referencedTypes) => HasBlueprintSchema OutputDatum referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods lift :: OutputDatum -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx Methods typeRep :: Proxy OutputDatum -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx type Rep OutputDatum = D1 ('MetaData "OutputDatum" "PlutusLedgerApi.V2.Tx" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'False) (C1 ('MetaCons "NoOutputDatum" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OutputDatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DatumHash)) :+: C1 ('MetaCons "OutputDatum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Datum)))) | |||||
| type Unroll OutputDatum Source # | |||||
Defined in PlutusLedgerApi.V2.Tx type Unroll OutputDatum = Insert OutputDatum (GUnroll (IfStuckRep (RepIsStuckError OutputDatum :: Type -> Type) (Rep OutputDatum))) | |||||
Transaction output for Plutus V4.
Constructors
| TxOut | |
Fields | |
Instances
| Generic TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Associated Types
| |||||
| Show TxOut Source # | |||||
| Eq TxOut Source # | |||||
| HasBlueprintDefinition TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| FromData TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |||||
| ToData TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |||||
| UnsafeFromData TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods | |||||
| Pretty TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| (HasSchemaDefinition Address referencedTypes, HasSchemaDefinition Value referencedTypes, HasSchemaDefinition OutputDatum referencedTypes, HasSchemaDefinition (Maybe ScriptHash) referencedTypes) => HasBlueprintSchema TxOut referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V4.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| Typeable DefaultUni TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx | |||||
| type Rep TxOut Source # | |||||
Defined in PlutusLedgerApi.V4.Tx type Rep TxOut = D1 ('MetaData "TxOut" "PlutusLedgerApi.V4.Tx" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'False) (C1 ('MetaCons "TxOut" 'PrefixI 'True) ((S1 ('MetaSel ('Just "txOutAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address) :*: S1 ('MetaSel ('Just "txOutValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :*: (S1 ('MetaSel ('Just "txOutDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OutputDatum) :*: S1 ('MetaSel ('Just "txOutReferenceScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptHash))))) | |||||
| type Unroll TxOut 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.