From a9a61d7b8a5ab0e70f729b4ac44f8a9b1d08f6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Mon, 15 Jan 2024 15:51:13 +0100 Subject: [PATCH] Document cardanoTestnet function, by specifying the shape of the directory it creates (#5577) --- cardano-testnet/src/Testnet/Start/Cardano.hs | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/cardano-testnet/src/Testnet/Start/Cardano.hs b/cardano-testnet/src/Testnet/Start/Cardano.hs index 97f090fdf92..c563fd5d602 100644 --- a/cardano-testnet/src/Testnet/Start/Cardano.hs +++ b/cardano-testnet/src/Testnet/Start/Cardano.hs @@ -84,6 +84,48 @@ startTimeOffsetSeconds :: DTC.NominalDiffTime startTimeOffsetSeconds = if OS.isWin32 then 90 else 15 +-- | Setup a number of credentials and pools, like this: +-- +-- > ├── byron +-- > │   └── genesis.json +-- > ├── byron-gen-command +-- > │   └── genesis-keys.00{0,1,2}.key +-- > ├── byron.genesis.spec.json +-- > ├── configuration.yaml +-- > ├── current-stake-pools.json +-- > ├── delegate-keys +-- > │   ├── delegate{1,2,3}.counter +-- > │   ├── delegate{1,2,3}.kes.{skey,vkey} +-- > │   ├── delegate{1,2,3}.{kes,vrf}.{skey,vkey} +-- > │   └── opcert{1,2,3}.cert +-- > ├── genesis.alonzo.spec.json +-- > ├── genesis.conway.spec.json +-- > ├── genesis-keys +-- > │   └── genesis{1,2,3}.{skey,vkey} +-- > ├── genesis.spec.json +-- > ├── node-spo{1,2,3} +-- > │   ├── byron-delegate.key +-- > │   ├── byron-delegation.cert +-- > │   ├── db +-- > │   │   └── ... +-- > │   ├── kes.skey +-- > │   ├── opcert.cert +-- > │   ├── port +-- > │   ├── topology.json +-- > │   └── vrf.skey +-- > ├── pools +-- > │   ├── cold{1,2,3}.{skey,vkey} +-- > │   ├── kes{1,2,3}.vkey +-- > │   ├── opcert{1,2,3}.counter +-- > │   ├── staking-reward{1,2,3}.{skey,vkey} +-- > │   └── vrf{1,2,3}.vkey +-- > ├── shelley +-- > │   ├── genesis.{alonzo,conway}.json +-- > │   └── genesis.json +-- > ├── socket +-- > │   └── node-spo{1,2,3} +-- > └── utxo-keys +-- >    └── utxo{1,2,3}.{addr,skey,vkey} cardanoTestnet :: CardanoTestnetOptions -> Conf -> H.Integration TestnetRuntime cardanoTestnet testnetOptions Conf {tempAbsPath} = do testnetMinimumConfigurationRequirements testnetOptions