{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeApplications #-}
module Test.Cardano.Ledger.Shelley.Constants (
Constants (..),
defaultConstants,
)
where
import Cardano.Ledger.Coin (Coin (..))
import Data.Word (Word64)
data Constants = Constants
{ Constants -> Int
minNumGenInputs :: Int
, Constants -> Int
maxNumGenInputs :: Int
, Constants -> Int
frequencyRegCert :: Int
, Constants -> Int
frequencyRegPoolCert :: Int
, Constants -> Int
frequencyDelegCert :: Int
, Constants -> Int
frequencyGenesisDelegationCert :: Int
, Constants -> Int
frequencyDeRegKeyCert :: Int
, Constants -> Int
frequencyRetirePoolCert :: Int
, Constants -> Int
frequencyMIRCert :: Int
, Constants -> Int
frequencyScriptCredReg :: Int
, Constants -> Int
frequencyKeyCredReg :: Int
, Constants -> Int
frequencyScriptCredDeReg :: Int
, Constants -> Int
frequencyKeyCredDeReg :: Int
, Constants -> Int
frequencyScriptCredDelegation :: Int
, Constants -> Int
frequencyKeyCredDelegation :: Int
, Constants -> Int
frequencyTxUpdates :: Int
, Constants -> Int
frequencyTxWithMetadata :: Int
, Constants -> Int
minGenesisUTxOouts :: Int
, Constants -> Int
maxGenesisUTxOouts :: Int
, Constants -> Integer
minGenesisOutputVal :: Integer
, Constants -> Integer
maxGenesisOutputVal :: Integer
, Constants -> Word64
maxCertsPerTx :: Word64
, Constants -> Word64
maxTxsPerBlock :: Word64
, Constants -> Word64
numKeyPairs :: Word64
, Constants -> Int
numBaseScripts :: Int
, Constants -> Int
numSimpleScripts :: Int
, Constants -> Int
frequencyNoWithdrawals :: Int
, Constants -> Int
frequencyAFewWithdrawals :: Int
, Constants -> Int
maxAFewWithdrawals :: Int
, Constants -> Int
frequencyPotentiallyManyWithdrawals :: Int
, Constants -> Int
minSlotTrace :: Int
, Constants -> Int
maxSlotTrace :: Int
, Constants -> Word64
frequencyLowMaxEpoch :: Word64
, Constants -> Coin
maxMinFeeA :: Coin
, Constants -> Coin
maxMinFeeB :: Coin
, Constants -> Word64
numCoreNodes :: Word64
, Constants -> Integer
minTreasury :: Integer
, Constants -> Integer
maxTreasury :: Integer
, Constants -> Integer
minReserves :: Integer
, Constants -> Integer
maxReserves :: Integer
, Constants -> Int
genTxStableUtxoSize :: Int
, Constants -> Int
genTxUtxoIncrement :: Int
}
deriving (Int -> Constants -> ShowS
[Constants] -> ShowS
Constants -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Constants] -> ShowS
$cshowList :: [Constants] -> ShowS
show :: Constants -> String
$cshow :: Constants -> String
showsPrec :: Int -> Constants -> ShowS
$cshowsPrec :: Int -> Constants -> ShowS
Show)
defaultConstants :: Constants
defaultConstants :: Constants
defaultConstants =
Constants
{ minNumGenInputs :: Int
minNumGenInputs = Int
1
, maxNumGenInputs :: Int
maxNumGenInputs = Int
5
, frequencyRegCert :: Int
frequencyRegCert = Int
2
, frequencyRegPoolCert :: Int
frequencyRegPoolCert = Int
2
, frequencyDelegCert :: Int
frequencyDelegCert = Int
3
, frequencyGenesisDelegationCert :: Int
frequencyGenesisDelegationCert = Int
1
, frequencyDeRegKeyCert :: Int
frequencyDeRegKeyCert = Int
1
, frequencyRetirePoolCert :: Int
frequencyRetirePoolCert = Int
1
, frequencyMIRCert :: Int
frequencyMIRCert = Int
1
, frequencyScriptCredReg :: Int
frequencyScriptCredReg = Int
1
, frequencyKeyCredReg :: Int
frequencyKeyCredReg = Int
2
, frequencyScriptCredDeReg :: Int
frequencyScriptCredDeReg = Int
1
, frequencyKeyCredDeReg :: Int
frequencyKeyCredDeReg = Int
2
, frequencyScriptCredDelegation :: Int
frequencyScriptCredDelegation = Int
1
, frequencyKeyCredDelegation :: Int
frequencyKeyCredDelegation = Int
2
, frequencyTxUpdates :: Int
frequencyTxUpdates = Int
10
, frequencyTxWithMetadata :: Int
frequencyTxWithMetadata = Int
10
, minGenesisUTxOouts :: Int
minGenesisUTxOouts = Int
100
, maxGenesisUTxOouts :: Int
maxGenesisUTxOouts = Int
150
, minGenesisOutputVal :: Integer
minGenesisOutputVal = Integer
1000000
, maxGenesisOutputVal :: Integer
maxGenesisOutputVal = Integer
100000000
, maxCertsPerTx :: Word64
maxCertsPerTx = Word64
3
, maxTxsPerBlock :: Word64
maxTxsPerBlock = Word64
10
, numKeyPairs :: Word64
numKeyPairs = Word64
200
, numBaseScripts :: Int
numBaseScripts = Int
3
, numSimpleScripts :: Int
numSimpleScripts = Int
20
, frequencyNoWithdrawals :: Int
frequencyNoWithdrawals = Int
75
, frequencyAFewWithdrawals :: Int
frequencyAFewWithdrawals = Int
20
, maxAFewWithdrawals :: Int
maxAFewWithdrawals = Int
10
, frequencyPotentiallyManyWithdrawals :: Int
frequencyPotentiallyManyWithdrawals = Int
5
, minSlotTrace :: Int
minSlotTrace = Int
1000
, maxSlotTrace :: Int
maxSlotTrace = Int
5000
, frequencyLowMaxEpoch :: Word64
frequencyLowMaxEpoch = Word64
200
, maxMinFeeA :: Coin
maxMinFeeA = Integer -> Coin
Coin Integer
100
, maxMinFeeB :: Coin
maxMinFeeB = Integer -> Coin
Coin Integer
2
, numCoreNodes :: Word64
numCoreNodes = Word64
7
, minTreasury :: Integer
minTreasury = Integer
1000000
, maxTreasury :: Integer
maxTreasury = Integer
10000000
, minReserves :: Integer
minReserves = Integer
1000000
, maxReserves :: Integer
maxReserves = Integer
10000000
, genTxStableUtxoSize :: Int
genTxStableUtxoSize = Int
125
, genTxUtxoIncrement :: Int
genTxUtxoIncrement = Int
3
}