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 IncrementRedeemer = IncrementRedeemer
- 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 IncrementRedeemer Source #
Sub-type for increment transition TODO: add more fields as needed.
Instances
Generic IncrementRedeemer Source # | |
Defined in Hydra.Contract.HeadState from :: IncrementRedeemer -> Rep IncrementRedeemer x Source # to :: Rep IncrementRedeemer x -> IncrementRedeemer Source # | |
Show IncrementRedeemer Source # | |
Defined in Hydra.Contract.HeadState | |
FromData IncrementRedeemer Source # | |
Defined in Hydra.Contract.HeadState fromBuiltinData :: BuiltinData -> Maybe IncrementRedeemer | |
ToData IncrementRedeemer Source # | |
Defined in Hydra.Contract.HeadState toBuiltinData :: IncrementRedeemer -> BuiltinData | |
UnsafeFromData IncrementRedeemer Source # | |
Defined in Hydra.Contract.HeadState unsafeFromBuiltinData :: BuiltinData -> IncrementRedeemer | |
type Rep IncrementRedeemer Source # | |
data DecrementRedeemer Source #
Sub-type for decrement transition with auxiliary data as needed.
DecrementRedeemer | |
|