Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Example values and utilities used across hydra-cluster tests and benchmarks.
Synopsis
- alice :: Party
- bob :: Party
- carol :: Party
- aliceSk :: SigningKey HydraKey
- bobSk :: SigningKey HydraKey
- carolSk :: SigningKey HydraKey
- aliceVk :: VerificationKey HydraKey
- bobVk :: VerificationKey HydraKey
- carolVk :: VerificationKey HydraKey
- cperiod :: ContestationPeriod
- defaultNetworkId :: NetworkId
- availableInitialFunds :: Num a => a
- data Actor
- = Alice
- | AliceFunds
- | Bob
- | BobFunds
- | Carol
- | CarolFunds
- | Faucet
- actorName :: Actor -> String
- fundsOf :: Actor -> Actor
- data KnownNetwork
- toNetworkId :: KnownNetwork -> NetworkId
Documentation
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
availableInitialFunds :: Num a => a Source #
Enumeration of known actors for which we can get the keysFor
and writeKeysFor
.
Instances
data KnownNetwork Source #
A network known to the hydra-cluster. That means we have configuration files to connect to at least these networks.
Instances
toNetworkId :: KnownNetwork -> NetworkId Source #