Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Add note on orphan instances. We want to have the haskell types come from the shared SDK so that other onchain implementations can reuse those same types. This however, forces us to declare orphan instances for haskell -> plutarch conversion
Synopsis
- getAuthorisedScriptHash :: forall (s :: S). Term s (PCurrencySymbol :--> (PBuiltinList (PAsData PTxInInfo) :--> (PYieldingRedeemer :--> PScriptHash)))
- data PAuthorisedScriptPurpose (s :: S)
- data PYieldingRedeemer (s :: S)
Documentation
getAuthorisedScriptHash :: forall (s :: S). Term s (PCurrencySymbol :--> (PBuiltinList (PAsData PTxInInfo) :--> (PYieldingRedeemer :--> PScriptHash))) Source #
Given a list of reference inputs and a Yielding Redeemer, dig out the authorised script hash by:
- Indexing the reference inputs according to the redeemer
- Checking the fetched reference input for the correct AuthorisedScriptsSTCS
- Returning the AuthorisedScriptHash
data PAuthorisedScriptPurpose (s :: S) Source #
Instances
data PYieldingRedeemer (s :: S) Source #
Instances
Orphan instances
PConstantDecl AuthorisedScriptIndex Source # | |
type PConstantRepr AuthorisedScriptIndex type PConstanted AuthorisedScriptIndex :: PType pconstantToRepr :: AuthorisedScriptIndex -> PConstantRepr AuthorisedScriptIndex pconstantFromRepr :: PConstantRepr AuthorisedScriptIndex -> Maybe AuthorisedScriptIndex | |
PConstantDecl AuthorisedScriptProofIndex Source # | |
type PConstantRepr AuthorisedScriptProofIndex type PConstanted AuthorisedScriptProofIndex :: PType pconstantToRepr :: AuthorisedScriptProofIndex -> PConstantRepr AuthorisedScriptProofIndex pconstantFromRepr :: PConstantRepr AuthorisedScriptProofIndex -> Maybe AuthorisedScriptProofIndex | |
PConstantDecl AuthorisedScriptPurpose Source # | |
type PConstantRepr AuthorisedScriptPurpose type PConstanted AuthorisedScriptPurpose :: PType pconstantToRepr :: AuthorisedScriptPurpose -> PConstantRepr AuthorisedScriptPurpose pconstantFromRepr :: PConstantRepr AuthorisedScriptPurpose -> Maybe AuthorisedScriptPurpose | |
PConstantDecl YieldingRedeemer Source # | |
type PConstantRepr YieldingRedeemer type PConstanted YieldingRedeemer :: PType pconstantToRepr :: YieldingRedeemer -> PConstantRepr YieldingRedeemer pconstantFromRepr :: PConstantRepr YieldingRedeemer -> Maybe YieldingRedeemer |