| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Plutus.Script.Utils.V1.Contexts
Synopsis
- data ScriptContext = ScriptContext {}
- data ScriptPurpose- = Minting CurrencySymbol
- | Spending TxOutRef
- | Rewarding StakingCredential
- | Certifying DCert
 
- data TxInInfo = TxInInfo {}
- data TxInfo = TxInfo {- txInfoInputs :: [TxInInfo]
- txInfoOutputs :: [TxOut]
- txInfoFee :: Value
- txInfoMint :: Value
- txInfoDCert :: [DCert]
- txInfoWdrl :: [(StakingCredential, Integer)]
- txInfoValidRange :: POSIXTimeRange
- txInfoSignatories :: [PubKeyHash]
- txInfoData :: [(DatumHash, Datum)]
- txInfoId :: TxId
 
- newtype TxId = TxId {- getTxId :: BuiltinByteString
 
- data TxOut = TxOut {- txOutAddress :: Address
- txOutValue :: Value
- txOutDatumHash :: Maybe DatumHash
 
- data TxOutRef = TxOutRef {- txOutRefId :: TxId
- txOutRefIdx :: Integer
 
- findContinuingOutputs :: ScriptContext -> [Integer]
- findDatum :: DatumHash -> TxInfo -> Maybe Datum
- findDatumHash :: Datum -> TxInfo -> Maybe DatumHash
- findOwnInput :: ScriptContext -> Maybe TxInInfo
- findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- fromSymbol :: CurrencySymbol -> ValidatorHash
- getContinuingOutputs :: ScriptContext -> [TxOut]
- ownCurrencySymbol :: ScriptContext -> CurrencySymbol
- ownHash :: ScriptContext -> ValidatorHash
- ownHashes :: ScriptContext -> (ValidatorHash, DatumHash)
- pubKeyOutput :: TxOut -> Maybe PubKeyHash
- pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value]
- scriptOutputsAt :: ValidatorHash -> TxInfo -> [(DatumHash, Value)]
- spendsOutput :: TxInfo -> TxId -> Integer -> Bool
- txSignedBy :: TxInfo -> PubKeyHash -> Bool
- valueLockedBy :: TxInfo -> ValidatorHash -> Value
- valueProduced :: TxInfo -> Value
- valueSpent :: TxInfo -> Value
- outputsAt :: Address -> TxInfo -> [Value]
- valuePaidTo :: TxInfo -> Address -> Value
Documentation
data ScriptContext #
Constructors
| ScriptContext | |
| Fields | |
Instances
data ScriptPurpose #
Constructors
| Minting CurrencySymbol | |
| Spending TxOutRef | |
| Rewarding StakingCredential | |
| Certifying DCert | 
Instances
Constructors
| TxInInfo | |
| Fields | |
Instances
Constructors
| TxInfo | |
| Fields 
 | |
Instances
Instances
| Eq TxId | |
| Ord TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| Show TxId | |
| IsString TxId | |
| Defined in Plutus.V1.Ledger.Tx Methods fromString :: String -> TxId Source # | |
| Generic TxId | |
| NFData TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| Eq TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| FromData TxId | |
| Defined in Plutus.V1.Ledger.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId | |
| Ord TxId | |
| Pretty TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| ToData TxId | |
| Defined in Plutus.V1.Ledger.Tx Methods toBuiltinData :: TxId -> BuiltinData | |
| UnsafeFromData TxId | |
| Defined in Plutus.V1.Ledger.Tx Methods unsafeFromBuiltinData :: BuiltinData -> TxId | |
| Lift DefaultUni TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| Typeable DefaultUni TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
| type Rep TxId | |
| Defined in Plutus.V1.Ledger.Tx | |
Constructors
| TxOut | |
| Fields 
 | |
Instances
Constructors
| TxOutRef | |
| Fields 
 | |
Instances
findContinuingOutputs :: ScriptContext -> [Integer] #
findOwnInput :: ScriptContext -> Maybe TxInInfo #
getContinuingOutputs :: ScriptContext -> [TxOut] #
ownHash :: ScriptContext -> ValidatorHash #
ownHashes :: ScriptContext -> (ValidatorHash, DatumHash) #
pubKeyOutput :: TxOut -> Maybe PubKeyHash #
pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value] #
scriptOutputsAt :: ValidatorHash -> TxInfo -> [(DatumHash, Value)] #
txSignedBy :: TxInfo -> PubKeyHash -> Bool #
valueLockedBy :: TxInfo -> ValidatorHash -> Value #
valueProduced :: TxInfo -> Value #
valueSpent :: TxInfo -> Value #
outputsAt :: Address -> TxInfo -> [Value] Source #
Get the values paid to a public key address by a pending transaction.
valuePaidTo :: TxInfo -> Address -> Value Source #
Get the total value paid to a public key address by a pending transaction.