plutus-example-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

PlutusExample.ScriptContextChecker

Documentation

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 

createAnyCustomRedeemer :: forall era lang. PlutusScriptVersion lang -> ShelleyBasedEra era -> ProtocolParameters -> UTxO era -> EpochInfo (Either Text) -> SystemStart -> Tx era -> Either ScriptContextError AnyCustomRedeemer Source #

seqToList :: StrictSeq a -> [a] Source #

newtype CddlTx Source #

Constructors

CddlTx 

Fields

Instances

Instances details
Eq CddlTx Source # 
Instance details

Defined in PlutusExample.ScriptContextChecker

Show CddlTx Source # 
Instance details

Defined in PlutusExample.ScriptContextChecker

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 #

dummyCerts :: [DCert] Source #

dummyTxIns :: [TxInInfo] Source #

dummySignatories :: [PubKeyHash] Source #

dummyDatumHashes :: [(DatumHash, Datum)] Source #

dummyTxOuts :: [TxOut] Source #

dummyPOSIXTimeRange :: POSIXTimeRange Source #

dummyScriptPurpose :: Maybe ScriptPurpose Source #

getTxInInfoFromTxIn :: UTxO (AlonzoEra StandardCrypto) -> TxIn StandardCrypto -> Maybe TxInInfo Source #