Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- mkForwardingMintingPolicy :: ValidatorHash -> MintingPolicy
- mkForwardingStakeValidator :: ValidatorHash -> StakeValidator
- module Plutus.Script.Utils.V1.Typed.Scripts.Validators
- data Validator
- data MintingPolicy
- data StakeValidator
- data TypedScriptTxOut a
- data TypedScriptTxOutRef a
- makeTypedScriptTxOut :: forall out. (ToData (DatumType out), FromData (DatumType out)) => TypedValidator out -> DatumType out -> Value -> TypedScriptTxOut out
- typeScriptTxOut :: forall out m. (FromData (DatumType out), ToData (DatumType out), MonadError ConnectionError m) => TypedValidator out -> TxOutRef -> TxOut -> Datum -> m (TypedScriptTxOut out)
- typeScriptTxOutRef :: forall out m. (FromData (DatumType out), ToData (DatumType out), MonadError ConnectionError m) => TypedValidator out -> TxOutRef -> TxOut -> Datum -> m (TypedScriptTxOutRef out)
Documentation
mkForwardingMintingPolicy :: ValidatorHash -> MintingPolicy Source #
A minting policy that checks whether the validator script was run in the minting transaction.
mkForwardingStakeValidator :: ValidatorHash -> StakeValidator Source #
A stake validator that checks whether the validator script was run in the right transaction.
Instances
Eq Validator | |
Ord Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
Show Validator | |
Generic Validator | |
NFData Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
Serialise Validator | |
Defined in Plutus.V1.Ledger.Scripts encode :: Validator -> Encoding encodeList :: [Validator] -> Encoding decodeList :: Decoder s [Validator] | |
Pretty Validator | |
Defined in Plutus.V1.Ledger.Scripts pretty :: Validator -> Doc ann prettyList :: [Validator] -> Doc ann | |
type Rep Validator | |
Defined in Plutus.V1.Ledger.Scripts |
data MintingPolicy #
Instances
data StakeValidator #
Instances
data TypedScriptTxOut a Source #
A TxOut
tagged by a phantom type: and the connection type of the output.
Instances
Eq (DatumType a) => Eq (TypedScriptTxOut a) Source # | |
Defined in Plutus.Script.Utils.V1.Typed.Scripts (==) :: TypedScriptTxOut a -> TypedScriptTxOut a -> Bool Source # (/=) :: TypedScriptTxOut a -> TypedScriptTxOut a -> Bool Source # |
data TypedScriptTxOutRef a Source #
A TxOutRef
tagged by a phantom type: and the connection type of the output.
Instances
Eq (DatumType a) => Eq (TypedScriptTxOutRef a) Source # | |
Defined in Plutus.Script.Utils.V1.Typed.Scripts (==) :: TypedScriptTxOutRef a -> TypedScriptTxOutRef a -> Bool Source # (/=) :: TypedScriptTxOutRef a -> TypedScriptTxOutRef a -> Bool Source # |
makeTypedScriptTxOut :: forall out. (ToData (DatumType out), FromData (DatumType out)) => TypedValidator out -> DatumType out -> Value -> TypedScriptTxOut out Source #
Create a TypedScriptTxOut
from a correctly-typed data script, an address, and a value.
typeScriptTxOut :: forall out m. (FromData (DatumType out), ToData (DatumType out), MonadError ConnectionError m) => TypedValidator out -> TxOutRef -> TxOut -> Datum -> m (TypedScriptTxOut out) Source #
Create a TypedScriptTxOut
from an existing TxOut
by checking the types of its parts.
typeScriptTxOutRef :: forall out m. (FromData (DatumType out), ToData (DatumType out), MonadError ConnectionError m) => TypedValidator out -> TxOutRef -> TxOut -> Datum -> m (TypedScriptTxOutRef out) Source #
Create a TypedScriptTxOut
from an existing TxOut
by checking the types of its parts.