Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ScriptPurpose
- = Minting CurrencySymbol
- | Spending TxOutRef
- | Rewarding StakingCredential
- | Certifying DCert
- data TxOutRef = TxOutRef {
- txOutRefId :: TxId
- txOutRefIdx :: Integer
- data TxInfo = TxInfo {
- txInfoInputs :: [TxInInfo]
- txInfoReferenceInputs :: [TxInInfo]
- txInfoOutputs :: [TxOut]
- txInfoFee :: Value
- txInfoMint :: Value
- txInfoDCert :: [DCert]
- txInfoWdrl :: Map StakingCredential Integer
- txInfoValidRange :: POSIXTimeRange
- txInfoSignatories :: [PubKeyHash]
- txInfoRedeemers :: Map ScriptPurpose Redeemer
- txInfoData :: Map DatumHash Datum
- txInfoId :: TxId
- fromSymbol :: CurrencySymbol -> ValidatorHash
- pubKeyOutput :: TxOut -> Maybe PubKeyHash
- findContinuingOutputs :: ScriptContext -> [Integer]
- findDatum :: DatumHash -> TxInfo -> Maybe Datum
- findDatumHash :: Datum -> TxInfo -> Maybe DatumHash
- findOwnInput :: ScriptContext -> Maybe TxInInfo
- getContinuingOutputs :: ScriptContext -> [TxOut]
- ownCurrencySymbol :: ScriptContext -> CurrencySymbol
- ownHash :: ScriptContext -> ValidatorHash
- ownHashes :: ScriptContext -> (ValidatorHash, OutputDatum)
- pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value]
- scriptOutputsAt :: ValidatorHash -> TxInfo -> [(OutputDatum, Value)]
- spendsOutput :: TxInfo -> TxId -> Integer -> Bool
- txSignedBy :: TxInfo -> PubKeyHash -> Bool
- valueLockedBy :: TxInfo -> ValidatorHash -> Value
- valueProduced :: TxInfo -> Value
- valueSpent :: TxInfo -> Value
- data ScriptContext = ScriptContext {}
- data TxInInfo = TxInInfo {}
- data TxOut = TxOut {
- txOutAddress :: Address
- txOutValue :: Value
- txOutDatum :: OutputDatum
- txOutReferenceScript :: Maybe ScriptHash
- findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- findTxRefInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- outputsAt :: Address -> TxInfo -> [Value]
- valuePaidTo :: TxInfo -> Address -> Value
Documentation
data ScriptPurpose #
Minting CurrencySymbol | |
Spending TxOutRef | |
Rewarding StakingCredential | |
Certifying DCert |
Instances
TxOutRef | |
|
Instances
TxInfo | |
|
Instances
pubKeyOutput :: TxOut -> Maybe PubKeyHash #
findContinuingOutputs :: ScriptContext -> [Integer] #
findOwnInput :: ScriptContext -> Maybe TxInInfo #
getContinuingOutputs :: ScriptContext -> [TxOut] #
ownHash :: ScriptContext -> ValidatorHash #
ownHashes :: ScriptContext -> (ValidatorHash, OutputDatum) #
pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value] #
scriptOutputsAt :: ValidatorHash -> TxInfo -> [(OutputDatum, Value)] #
txSignedBy :: TxInfo -> PubKeyHash -> Bool #
valueLockedBy :: TxInfo -> ValidatorHash -> Value #
valueProduced :: TxInfo -> Value #
valueSpent :: TxInfo -> Value #
data ScriptContext #
Instances
Instances
TxOut | |
|
Instances
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.