Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cooked.Skeleton.Output
Synopsis
- data TxSkelOut where
- Pays :: (Show o, Typeable o, IsTxInfoOutput o, IsTxSkelOutAllowedOwner (OwnerType o), ToCredential (OwnerType o), Typeable (OwnerType o), DatumType o ~ TxSkelOutDatum, ValueType o ~ TxSkelOutValue, ToVersionedScript (ReferenceScriptType o), Show (OwnerType o), Show (ReferenceScriptType o), Typeable (ReferenceScriptType o)) => o -> TxSkelOut
- receives :: (Show owner, Typeable owner, IsTxSkelOutAllowedOwner owner, ToCredential owner) => owner -> Payable els -> TxSkelOut
- txSkelOutValueL :: Lens' TxSkelOut TxSkelOutValue
- txSkelOutDatumL :: Lens' TxSkelOut TxSkelOutDatum
- txSkelOutValue :: TxSkelOut -> Value
- txSkelOutValidator :: TxSkelOut -> Maybe (Versioned Validator)
- txSkelOutOwnerTypeP :: forall ownerType. (ToCredential ownerType, Show ownerType, IsTxSkelOutAllowedOwner ownerType, Typeable ownerType) => Prism' TxSkelOut (ConcreteOutput ownerType TxSkelOutDatum TxSkelOutValue (Versioned Script))
- txSkelOutputDatumTypeAT :: (FromData a, Typeable a) => AffineTraversal' TxSkelOut a
Documentation
Transaction outputs. The Pays
constructor is really general, and you'll
probably want to use the receives
smart constructor in most cases.
Constructors
Pays :: (Show o, Typeable o, IsTxInfoOutput o, IsTxSkelOutAllowedOwner (OwnerType o), ToCredential (OwnerType o), Typeable (OwnerType o), DatumType o ~ TxSkelOutDatum, ValueType o ~ TxSkelOutValue, ToVersionedScript (ReferenceScriptType o), Show (OwnerType o), Show (ReferenceScriptType o), Typeable (ReferenceScriptType o)) => o -> TxSkelOut |
Instances
Monoid DoubleSatDelta Source # | |
Defined in Cooked.Attack.DoubleSat Methods mappend :: DoubleSatDelta -> DoubleSatDelta -> DoubleSatDelta # mconcat :: [DoubleSatDelta] -> DoubleSatDelta # | |
Semigroup DoubleSatDelta Source # | |
Defined in Cooked.Attack.DoubleSat Methods (<>) :: DoubleSatDelta -> DoubleSatDelta -> DoubleSatDelta # sconcat :: NonEmpty DoubleSatDelta -> DoubleSatDelta # stimes :: Integral b => b -> DoubleSatDelta -> DoubleSatDelta # | |
Show TxSkelOut Source # | |
Eq TxSkelOut Source # | |
receives :: (Show owner, Typeable owner, IsTxSkelOutAllowedOwner owner, ToCredential owner) => owner -> Payable els -> TxSkelOut Source #
Smart constructor to build TxSkelOut
from an owner and payment. This
should be the main way of building outputs.
txSkelOutValue :: TxSkelOut -> Value Source #
txSkelOutOwnerTypeP :: forall ownerType. (ToCredential ownerType, Show ownerType, IsTxSkelOutAllowedOwner ownerType, Typeable ownerType) => Prism' TxSkelOut (ConcreteOutput ownerType TxSkelOutDatum TxSkelOutValue (Versioned Script)) Source #
Decide if a transaction output has a certain owner and datum type.
txSkelOutputDatumTypeAT :: (FromData a, Typeable a) => AffineTraversal' TxSkelOut a Source #