Safe Haskell | None |
---|---|
Language | Haskell2010 |
PlutusExample.ScriptContextChecker
Documentation
data AnyCustomRedeemer Source #
Instances
Eq AnyCustomRedeemer Source # | |
Defined in PlutusExample.ScriptContextChecker Methods (==) :: AnyCustomRedeemer -> AnyCustomRedeemer -> Bool Source # (/=) :: AnyCustomRedeemer -> AnyCustomRedeemer -> Bool Source # | |
Show AnyCustomRedeemer Source # | |
Defined in PlutusExample.ScriptContextChecker |
customRedeemerToScriptData :: AnyCustomRedeemer -> ScriptData Source #
data ScriptContextError Source #
Constructors
NoScriptsInByronEra | |
NoScriptsInEra | |
ReadTxBodyError (FileError TextEnvelopeCddlError) | |
IntervalConvError Text | |
AcquireFail AcquiringFailure | |
NoTipLocalStateError | |
NoSystemStartTimeError | |
EnvVarSocketErr EnvSocketError | |
ScriptContextErrorByronEra | |
QueryError ShelleyQueryCmdError | |
ConsensusModeMismatch AnyConsensusMode AnyCardanoEra | |
EraMismatch !EraMismatch | |
PlutusV2TranslationError (TranslationError StandardCrypto) | |
MoreThanOneTxInput |
Instances
createAnyCustomRedeemer :: forall era lang. PlutusScriptVersion lang -> ShelleyBasedEra era -> ProtocolParameters -> UTxO era -> EpochInfo (Either Text) -> SystemStart -> Tx era -> Either ScriptContextError AnyCustomRedeemer Source #
createAnyCustomRedeemerFromTxFp :: PlutusScriptVersion lang -> FilePath -> AnyConsensusModeParams -> NetworkId -> ExceptT ScriptContextError IO AnyCustomRedeemer Source #
createAnyCustomRedeemerBsFromTxFp :: PlutusScriptVersion lang -> FilePath -> AnyConsensusModeParams -> NetworkId -> ExceptT ScriptContextError IO ByteString Source #
getSbe :: CardanoEraStyle era -> ExceptT ScriptContextError IO (ShelleyBasedEra era) Source #
fromPlutusTxId :: TxId -> TxId StandardCrypto Source #
sampleTestV1ScriptContextDataJSON :: ByteString Source #
dummyCerts :: [DCert] Source #
dummyTxIns :: [TxInInfo] Source #
dummySignatories :: [PubKeyHash] Source #
dummyDatumHashes :: [(DatumHash, Datum)] Source #
dummyLedgerVal :: Value Source #
dummyTxOuts :: [TxOut] Source #
dummyPOSIXTimeRange :: POSIXTimeRange Source #
dummyScriptPurpose :: Maybe ScriptPurpose Source #
getTxInInfoFromTxIn :: UTxO (AlonzoEra StandardCrypto) -> TxIn StandardCrypto -> Maybe TxInInfo Source #
sampleTestV2ScriptContextDataJSON :: ByteString Source #