Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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, "datum" := POutputDatum, "referenceScript" := PMaybeData PScriptHash]))
- newtype PTxId (s :: S) = PTxId (Term s (PDataRecord '["_0" := PByteString]))
- newtype PTxInInfo (s :: S) = PTxInInfo (Term s (PDataRecord '["outRef" := PTxOutRef, "resolved" := PTxOut]))
- data POutputDatum (s :: S)
- = PNoOutputDatum (Term s (PDataRecord '[]))
- | POutputDatumHash (Term s (PDataRecord '["datumHash" := PDatumHash]))
- | POutputDatum (Term s (PDataRecord '["outputDatum" := PDatum]))
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
PTxOut (Term s (PDataRecord '["address" := PAddress, "value" := PValue 'Sorted 'Positive, "datum" := POutputDatum, "referenceScript" := PMaybeData PScriptHash])) |
Instances
newtype PTxId (s :: S) Source #
PTxId (Term s (PDataRecord '["_0" := PByteString])) |
Instances
newtype PTxInInfo (s :: S) Source #
A input of the pending transaction.
Instances
data POutputDatum (s :: S) Source #
The datum attached to an output: either nothing, a datum hash or an inline datum (CIP 32)
PNoOutputDatum (Term s (PDataRecord '[])) | |
POutputDatumHash (Term s (PDataRecord '["datumHash" := PDatumHash])) | |
POutputDatum (Term s (PDataRecord '["outputDatum" := PDatum])) |
Instances
Orphan instances
PConstantDecl TxInInfo Source # | |
type PConstantRepr TxInInfo Source # type PConstanted TxInInfo :: PType Source # | |
PConstantDecl OutputDatum Source # | |
PConstantDecl TxOut Source # | |
type PConstantRepr TxOut Source # type PConstanted TxOut :: PType Source # |