Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
Instances
data ScriptPurpose #
Minting CurrencySymbol | |
Spending TxOutRef | |
Rewarding StakingCredential | |
Certifying DCert |
Instances
Instances
TxInfo | |
|
Instances
Instances
Eq TxId | |
Ord TxId | |
Show TxId | |
IsString TxId | |
Defined in Plutus.V1.Ledger.Tx 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 fromBuiltinData :: BuiltinData -> Maybe TxId | |
Ord TxId | |
Pretty TxId | |
Defined in Plutus.V1.Ledger.Tx prettyList :: [TxId] -> Doc ann | |
ToData TxId | |
Defined in Plutus.V1.Ledger.Tx toBuiltinData :: TxId -> BuiltinData | |
UnsafeFromData TxId | |
Defined in Plutus.V1.Ledger.Tx 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 |
TxOut | |
|
Instances
TxOutRef | |
|
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.