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
- deltaUTxOHash :: 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
- | CloseUnused { }
- | CloseUsed { }
- data ContestRedeemer
- = ContestCurrent { }
- | ContestOutdated { }
- 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. |
CloseUnused | Closing snapshot refers to the current state version |
CloseUsed | 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 |
ContestOutdated | Contesting snapshot refers to the previous state version |
|
Instances
data DecrementRedeemer Source #
Sub-type for decrement transition with auxiliary data as needed.
DecrementRedeemer | |
|
Instances
CollectCom | |
Decrement DecrementRedeemer | |
Close CloseRedeemer | |
Contest ContestRedeemer | |
Abort | |
Fanout | |
|