cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Skeleton.Output

Description

This module exposes outputs as they can be defined in a TxSkel with various utilities around them.

Synopsis

Documentation

data TxSkelOut where Source #

A rich output to be put into a TxSkel

Constructors

TxSkelOut 

Fields

receives :: OwnerConstrs owner => owner -> Payable els -> TxSkelOut Source #

Smart constructor to build a TxSkelOut from an owner and payment. This should be the main way of building outputs.

txSkelOutStakingCredentialL :: Lens' TxSkelOut (Maybe StakingCredential) Source #

A lens to get or set the 'Maybe Api.StakingCredential' from a TxSkelOut

txSkelOutValue :: TxSkelOut -> Value Source #

Returns the value contained in a TxSkelOut

txSkelOutValidator :: TxSkelOut -> Maybe (Versioned Validator) Source #

Returns the optional validator owning a given TxSkelOut

txSkelOutReferenceScript :: TxSkelOut -> Maybe (Versioned Script) Source #

Returns the optional reference script in a TxSkelOut

txSkelOutReferenceScriptHash :: TxSkelOut -> Maybe ScriptHash Source #

Returns the optional reference script hash in a TxSkelOut

type OwnerConstrs owner = (IsTxSkelOutAllowedOwner owner, ToCredential owner, Typeable owner, Show owner) Source #

Type constraints over the owner of a TxSkelOut

txSkelOutAddress :: TxSkelOut -> Address Source #

Returns the address of this TxSkelOut

txSkelOutPKHash :: TxSkelOut -> Maybe PubKeyHash Source #

Returns the optional private key owning a given TxSkelOut

txSkelOutTypedOwnerAT :: OwnerConstrs a => AffineTraversal' TxSkelOut a Source #

Attempts to retrieve or set a typed owner from this TxSkelOut