| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Node.Environment
Synopsis
- data Environment = Environment {
- party :: Party
- signingKey :: Secret (SigningKey HydraKey)
- otherParties :: [Party]
- participants :: [OnChainId]
- contestationPeriod :: ContestationPeriod
- depositPeriod :: DepositPeriod
- depositActivation :: DepositPeriod
- unsyncedPeriod :: UnsyncedPeriod
- configuredPeers :: Text
- placeholderSigningKey :: Secret (SigningKey HydraKey)
- mkHeadParameters :: Environment -> HeadParameters
Documentation
data Environment Source #
Constructors
| Environment | |
Fields
| |
Instances
| FromJSON Environment Source # |
|
Defined in Hydra.Node.Environment | |
| ToJSON Environment Source # |
|
Defined in Hydra.Node.Environment Methods toJSON :: Environment -> Value toEncoding :: Environment -> Encoding toJSONList :: [Environment] -> Value toEncodingList :: [Environment] -> Encoding omitField :: Environment -> Bool | |
| Generic Environment Source # | |
Defined in Hydra.Node.Environment Methods from :: Environment -> Rep Environment x Source # to :: Rep Environment x -> Environment Source # | |
| Show Environment Source # | |
Defined in Hydra.Node.Environment | |
| FromCBOR Environment Source # | Like the JSON instance above, the decoded signing key is
|
Defined in Hydra.Node.Environment | |
| ToCBOR Environment Source # | Like the JSON instance above, |
Defined in Hydra.Node.Environment Methods toCBOR :: Environment -> Encoding encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy Environment -> Size encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Environment] -> Size | |
| Eq Environment Source # | |
Defined in Hydra.Node.Environment Methods (==) :: Environment -> Environment -> Bool Source # (/=) :: Environment -> Environment -> Bool Source # | |
| type Rep Environment Source # | |
Defined in Hydra.Node.Environment type Rep Environment = D1 ('MetaData "Environment" "Hydra.Node.Environment" "hydra-node-2.3.0-1cgalYNmLJQC1YXlYVq7mp" 'False) (C1 ('MetaCons "Environment" 'PrefixI 'True) (((S1 ('MetaSel ('Just "party") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Party) :*: S1 ('MetaSel ('Just "signingKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Secret (SigningKey HydraKey)))) :*: (S1 ('MetaSel ('Just "otherParties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Party]) :*: S1 ('MetaSel ('Just "participants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [OnChainId]))) :*: ((S1 ('MetaSel ('Just "contestationPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContestationPeriod) :*: S1 ('MetaSel ('Just "depositPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DepositPeriod)) :*: (S1 ('MetaSel ('Just "depositActivation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DepositPeriod) :*: (S1 ('MetaSel ('Just "unsyncedPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UnsyncedPeriod) :*: S1 ('MetaSel ('Just "configuredPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))) | |
placeholderSigningKey :: Secret (SigningKey HydraKey) Source #
Sentinel signing key used when an Environment has to be
reconstructed without access to the real one (e.g. JSON roundtrip
tests). Exported so Arbitrary generators can use the same value,
keeping roundtrip Eq stable.
mkHeadParameters :: Environment -> HeadParameters Source #
Make HeadParameters that are consistent with the given Environment.