Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type SnapshotNumber = Integer
- type SnapshotVersion = Integer
- type Hash = BuiltinByteString
- type Signature = BuiltinByteString
- data OpenDatum = OpenDatum {
- headId :: CurrencySymbol
- parties :: [Party]
- contestationPeriod :: ContestationPeriod
- version :: SnapshotVersion
- utxoHash :: Hash
- data ClosedDatum = ClosedDatum {
- headId :: CurrencySymbol
- parties :: [Party]
- contestationPeriod :: ContestationPeriod
- version :: SnapshotVersion
- snapshotNumber :: SnapshotNumber
- utxoHash :: Hash
- alphaUTxOHash :: Hash
- omegaUTxOHash :: Hash
- contesters :: [PubKeyHash]
- contestationDeadline :: POSIXTime
- data State
- = Initial {
- contestationPeriod :: ContestationPeriod
- parties :: [Party]
- headId :: CurrencySymbol
- seed :: TxOutRef
- | Open OpenDatum
- | Closed ClosedDatum
- | Final
- = Initial {
- data CloseRedeemer
- = CloseInitial
- | CloseAny { }
- | CloseUnusedDec { }
- | CloseUsedDec { }
- | CloseUnusedInc { }
- | CloseUsedInc { }
- data ContestRedeemer
- = ContestCurrent { }
- | ContestUsedDec { }
- | ContestUnusedDec { }
- | ContestUnusedInc { }
- | ContestUsedInc { }
- data IncrementRedeemer = IncrementRedeemer {
- signature :: [Signature]
- snapshotNumber :: SnapshotNumber
- increment :: TxOutRef
- data DecrementRedeemer = DecrementRedeemer {}
- data Input
Documentation
type SnapshotNumber = Integer Source #
type SnapshotVersion = Integer Source #
Sub-type for the open state-machine state.
OpenDatum | |
|
Instances
data ClosedDatum Source #
Sub-type for the closed state-machine state.
ClosedDatum | |
|
Instances
Initial | |
| |
Open OpenDatum | |
Closed ClosedDatum | |
Final |
Instances
data CloseRedeemer Source #
Sub-type for close transition with auxiliary data as needed.
CloseInitial | Intial snapshot is used to close. |
CloseAny | Any snapshot which doesn't contain anything to inc/decrement but snapshot number is higher than zero. |
CloseUnusedDec | Closing snapshot refers to the current state version |
CloseUsedDec | Closing snapshot refers to the previous state version |
| |
CloseUnusedInc | Closing snapshot refers to the current state version |
| |
CloseUsedInc | Closing snapshot refers to the previous state version |
|
Instances
data ContestRedeemer Source #
Sub-type for contest transition with auxiliary data as needed.
ContestCurrent | Contesting snapshot refers to the current state version |
ContestUsedDec | Contesting snapshot refers to the previous state version |
| |
ContestUnusedDec | Redeemer to use when the decommit was not yet observed but we closed the Head. |
ContestUnusedInc | Redeemer to use when the commit was not yet observed but we closed the Head. |
| |
ContestUsedInc | |
Instances
data IncrementRedeemer Source #
Sub-type for increment transition
IncrementRedeemer | |
|
Instances
data DecrementRedeemer Source #
Sub-type for decrement transition with auxiliary data as needed.
DecrementRedeemer | |
|
Instances
CollectCom | |
Increment IncrementRedeemer | |
Decrement DecrementRedeemer | |
Close CloseRedeemer | |
Contest ContestRedeemer | |
Abort | |
Fanout | |