Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hydra.Chain.Direct.Contract.CollectCom
Documentation
healthyCollectComTx :: (Tx, UTxO) Source #
healthyCommits :: Map TxIn HealthyCommit Source #
healthyCommittedUTxO :: [UTxO] Source #
healthyContestationPeriod :: ContestationPeriod Source #
healthyHeadInput :: TxIn Source #
healthyHeadResolvedInput :: TxOut CtxUTxO Source #
healthyCollectComInitialDatum :: State Source #
healthyOnChainParties :: [Party] Source #
healthyParties :: [Party] Source #
genCommittableTxOut :: Gen (TxIn, TxOut CtxUTxO) Source #
data HealthyCommit Source #
Constructors
HealthyCommit | |
Fields
|
Instances
healthyCommitOutput :: Party -> UTxO -> (TxIn, HealthyCommit) Source #
data CollectComMutation Source #
Constructors
NotContinueContract | Ensures collectCom does not allow any output address but νHead. |
ExtractSomeValue | Needs to prevent that not all value is collected into the head output. |
MutateOpenUTxOHash | |
MutateCommitToInitial | Ensures collectCom cannot collect from an initial UTxO. |
MutateNumberOfParties | Every party should have commited and been taken into account for the collectCom transaction to be valid. Here we increase the number of parties in input and output but keep the commits unchanged. This simulates the situation where one participant would not have commited already or whose commit would have been ignored by the collectCom transaction. |
MutateHeadId | |
MutateRequiredSigner | |
MutateTokenMintingOrBurning | Minting or burning of tokens should not be possible in collectCom. |
Instances
genCollectComMutation :: (Tx, UTxO) -> Gen SomeMutation Source #