Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Plutarch.Api.V1.Tx
Contents
Synopsis
- newtype PTxOutRef (s :: S) = PTxOutRef (Term s (PDataRecord '["id" := PTxId, "idx" := PInteger]))
- newtype PTxOut (s :: S) = PTxOut (Term s (PDataRecord '["address" := PAddress, "value" := PValue 'Sorted 'Positive, "datumHash" := PMaybeData PDatumHash]))
- newtype PTxId (s :: S) = PTxId (Term s (PDataRecord '["_0" := PByteString]))
- newtype PTxInInfo (s :: S) = PTxInInfo (Term s (PDataRecord '["outRef" := PTxOutRef, "resolved" := PTxOut]))
Documentation
newtype PTxOutRef (s :: S) Source #
Reference to a transaction output with a index referencing which of the outputs is being referred to.
Instances
newtype PTxOut (s :: S) Source #
A transaction output. This consists of a target address, value and maybe a datum hash
Constructors
PTxOut (Term s (PDataRecord '["address" := PAddress, "value" := PValue 'Sorted 'Positive, "datumHash" := PMaybeData PDatumHash])) |
Instances
newtype PTxId (s :: S) Source #
Constructors
PTxId (Term s (PDataRecord '["_0" := PByteString])) |
Instances
newtype PTxInInfo (s :: S) Source #
A input of the pending transaction.
Instances
Orphan instances
PConstantDecl TxInInfo Source # | |
Methods pconstantToRepr :: TxInInfo -> PConstantRepr TxInInfo Source # pconstantFromRepr :: PConstantRepr TxInInfo -> Maybe TxInInfo Source # | |
PConstantDecl TxId Source # | |
Methods pconstantToRepr :: TxId -> PConstantRepr TxId Source # pconstantFromRepr :: PConstantRepr TxId -> Maybe TxId Source # | |
PConstantDecl TxOut Source # | |
Methods pconstantToRepr :: TxOut -> PConstantRepr TxOut Source # pconstantFromRepr :: PConstantRepr TxOut -> Maybe TxOut Source # | |
PConstantDecl TxOutRef Source # | |
Methods pconstantToRepr :: TxOutRef -> PConstantRepr TxOutRef Source # pconstantFromRepr :: PConstantRepr TxOutRef -> Maybe TxOutRef Source # |