Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- networkId :: NetworkId
- data Dataset = Dataset {
- fundingTransaction :: Tx
- hydraNodeKeys :: [SigningKey PaymentKey]
- clientDatasets :: [ClientDataset]
- title :: Maybe Text
- description :: Maybe Text
- data ClientDataset = ClientDataset {
- paymentKey :: SigningKey PaymentKey
- initialUTxO :: UTxO
- txSequence :: [Tx]
- defaultProtocolParameters :: PParams LedgerEra
- generateConstantUTxODataset :: SigningKey PaymentKey -> Int -> Int -> Gen Dataset
- generateDemoUTxODataset :: NetworkId -> SocketPath -> SigningKey PaymentKey -> Int -> Int -> IO Dataset
- withInitialUTxO :: SigningKey PaymentKey -> Tx -> UTxO
- genClientFunds :: [SigningKey PaymentKey] -> Integer -> Gen [(VerificationKey PaymentKey, Coin)]
- generateClientDataset :: NetworkId -> Tx -> Int -> SigningKey PaymentKey -> Gen ClientDataset
Documentation
A Dataset
that can be run for testing purpose. Each Dataset
represents
a complete scenario where several ClientDataset
are run concurrently
against one or more HydraNode
s. A dataset can optionally have a title
and
description
which will be used to report results.
Dataset | |
|
Instances
data ClientDataset Source #
ClientDataset | |
|
Instances
defaultProtocolParameters :: PParams LedgerEra Source #
generateConstantUTxODataset Source #
:: SigningKey PaymentKey | Faucet signing key |
-> Int | Number of clients |
-> Int | Number of transactions |
-> Gen Dataset |
Generate a Dataset
which does not grow the per-client UTXO set over time.
This version provided faucet key owns funds on the initial funds of the
devnet (See availableInitialFunds
and 'genesis-shelley.json'). Then for a
given number of clients a number of transactions are generated.
generateDemoUTxODataset Source #
:: NetworkId | |
-> SocketPath | |
-> SigningKey PaymentKey | Faucet signing key |
-> Int | Number of clients. |
-> Int | Number of transactions |
-> IO Dataset |
Generate a Dataset
from an already running network by quering available
funds of the well-known 'faucet.sk' and assuming the hydra-nodes we connect
to have fuel available. Then for a given number of clients a number of
transactions are generated.
Helpers
withInitialUTxO :: SigningKey PaymentKey -> Tx -> UTxO Source #
genClientFunds :: [SigningKey PaymentKey] -> Integer -> Gen [(VerificationKey PaymentKey, Coin)] Source #
generateClientDataset :: NetworkId -> Tx -> Int -> SigningKey PaymentKey -> Gen ClientDataset Source #