hydra-cluster-0.16.0: Integration test suite using a local cluster of cardano and hydra nodes
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Cluster.Fixture

Description

Example values and utilities used across hydra-cluster tests and benchmarks.

Synopsis

Documentation

alice :: Party Source #

bob :: Party Source #

carol :: Party Source #

aliceSk :: SigningKey HydraKey Source #

bobSk :: SigningKey HydraKey Source #

carolSk :: SigningKey HydraKey Source #

aliceVk :: VerificationKey HydraKey Source #

bobVk :: VerificationKey HydraKey Source #

carolVk :: VerificationKey HydraKey Source #

cperiod :: ContestationPeriod Source #

defaultNetworkId :: NetworkId Source #

TODO: This is hard-coded and must match what's in the genesis file, so ideally, we want to either:

  • overwrite the genesis configuration with the ClusterConfig
  • pull the network id from the genesis configuration

data Actor Source #

Enumeration of known actors for which we can get the keysFor and writeKeysFor.

Instances

Instances details
Show Actor Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Eq Actor Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Methods

(==) :: Actor -> Actor -> Bool Source #

(/=) :: Actor -> Actor -> Bool Source #

data KnownNetwork Source #

A network known to the hydra-cluster. That means we have configuration files to connect to at least these networks.

Instances

Instances details
FromJSON KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Methods

parseJSON :: Value -> Parser KnownNetwork

parseJSONList :: Value -> Parser [KnownNetwork]

omittedField :: Maybe KnownNetwork

ToJSON KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Methods

toJSON :: KnownNetwork -> Value

toEncoding :: KnownNetwork -> Encoding

toJSONList :: [KnownNetwork] -> Value

toEncodingList :: [KnownNetwork] -> Encoding

omitField :: KnownNetwork -> Bool

Bounded KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Enum KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Generic KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Associated Types

type Rep KnownNetwork :: Type -> Type Source #

Show KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

Eq KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

type Rep KnownNetwork Source # 
Instance details

Defined in Hydra.Cluster.Fixture

type Rep KnownNetwork = D1 ('MetaData "KnownNetwork" "Hydra.Cluster.Fixture" "hydra-cluster-0.16.0-H5lzY9AHDZU1l7EKaIl1Ia" 'False) ((C1 ('MetaCons "Preview" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Preproduction" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Sanchonet" 'PrefixI 'False) (U1 :: Type -> Type)))