Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Marlowe.Runtime.History.Api
Documentation
data ContractHistoryError Source #
Constructors
HansdshakeFailed | |
FindTxFailed TxError | |
ExtractContractFailed ExtractCreationError | |
FollowScriptUTxOFailed UTxOError | |
FollowPayoutUTxOsFailed (Map TxOutRef UTxOError) | |
ExtractMarloweTransactionFailed ExtractMarloweTransactionError | |
PayoutUTxONotFound TxOutRef | |
CreateTxRolledBack |
Instances
data ExtractCreationError Source #
Constructors
TxIxNotFound | |
ByronAddress | |
NonScriptAddress | |
InvalidScriptHash | |
NoCreateDatum | |
InvalidCreateDatum | |
NotCreationTransaction |
Instances
data ExtractMarloweTransactionError Source #
Constructors
Instances
data CreateStep v Source #
Constructors
CreateStep | |
Fields
|
Instances
data SomeCreateStep Source #
Constructors
forall v. SomeCreateStep (MarloweVersion v) (CreateStep v) |
Instances
ToJSON SomeCreateStep Source # | |
Defined in Language.Marlowe.Runtime.History.Api Methods toJSON :: SomeCreateStep -> Value toEncoding :: SomeCreateStep -> Encoding toJSONList :: [SomeCreateStep] -> Value toEncodingList :: [SomeCreateStep] -> Encoding | |
Show SomeCreateStep Source # | |
Defined in Language.Marlowe.Runtime.History.Api | |
Eq SomeCreateStep Source # | |
Defined in Language.Marlowe.Runtime.History.Api Methods (==) :: SomeCreateStep -> SomeCreateStep -> Bool Source # (/=) :: SomeCreateStep -> SomeCreateStep -> Bool Source # | |
Variations SomeCreateStep Source # | |
Defined in Language.Marlowe.Runtime.History.Api Methods |
data RedeemStep v Source #
Constructors
RedeemStep | |
Fields
|
Instances
data ContractStep v Source #
Constructors
ApplyTransaction (Transaction v) | |
RedeemPayout (RedeemStep v) |
Instances
extractCreation :: ContractId -> Transaction -> Either ExtractCreationError SomeCreateStep Source #
getScriptHash :: Address -> Either ExtractCreationError ScriptHash Source #
isScriptAddress :: ScriptHash -> Address -> Bool Source #
getOutput :: TxIx -> Transaction -> Either ExtractCreationError TransactionOutput Source #
extractMarloweTransaction :: MarloweVersion v -> SystemStart -> EraHistory CardanoMode -> ContractId -> Address -> ScriptHash -> TxOutRef -> BlockHeader -> Transaction -> Either ExtractMarloweTransactionError (Transaction v) Source #
isToScriptHash :: ScriptHash -> TransactionOutput -> Bool Source #
isToAddress :: Address -> TransactionOutput -> Bool Source #
consumesUTxO :: TxOutRef -> TransactionInput -> Bool Source #