marlowe-runtime-0.0.5: Runtime system for running Marlowe financial contracts on the Cardano Computation Layer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Marlowe.Runtime.Transaction.Safety

Synopsis

Documentation

type Continuations v = Map DatumHash (Contract v) Source #

checkContract :: NetworkId -> RoleTokensConfig -> MarloweVersion v -> Contract v -> Continuations v -> [SafetyError] Source #

Check a contract for design errors and ledger violations.

checkTransactions :: MonadIO m => ProtocolParameters -> ReferenceTxInsScriptsInlineDatumsSupportedInEra era -> MarloweVersion v -> MarloweContext v -> PolicyId -> Address -> Integer -> Contract v -> Continuations v -> m (Either String [SafetyError]) Source #

Mock-execute all possible transactions for a contract.

makeSystemHistory :: UTCTime -> (SystemStart, EraHistory CardanoMode) Source #

Make a system start and error history for the given start time.

minAdaUpperBound :: ProtocolParameters -> MarloweVersion v -> Contract v -> Continuations v -> Maybe Lovelace Source #

Compute a worst-case bound on the minimum UTxO value for a contract, assuming that the contract does not pay from the account in the initial state and that account only contains lovelace.

noContinuations :: MarloweVersion v -> Continuations v Source #

No continuations for a contract.