Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- fromLedgerScript :: (HasCallStack, AlonzoEraScript era) => AlonzoScript era -> PlutusScript lang
- fromPlutusScript :: SerialisedScript -> PlutusScript lang
Type Conversions
fromLedgerScript :: (HasCallStack, AlonzoEraScript era) => AlonzoScript era -> PlutusScript lang Source #
fromPlutusScript :: SerialisedScript -> PlutusScript lang Source #
Convert a serialized plutus script into a cardano-api Script
.
Orphans
Orphan instances
Arbitrary (PlutusScript lang) Source # | |
arbitrary :: Gen (PlutusScript lang) # shrink :: PlutusScript lang -> [PlutusScript lang] # | |
IsPlutusScriptLanguage lang => FromJSON (PlutusScript lang) Source # | |
parseJSON :: Value -> Parser (PlutusScript lang) # parseJSONList :: Value -> Parser [PlutusScript lang] # omittedField :: Maybe (PlutusScript lang) # | |
IsPlutusScriptLanguage lang => ToJSON (PlutusScript lang) Source # | |
toJSON :: PlutusScript lang -> Value # toEncoding :: PlutusScript lang -> Encoding # toJSONList :: [PlutusScript lang] -> Value # toEncodingList :: [PlutusScript lang] -> Encoding # omitField :: PlutusScript lang -> Bool # |