Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Shelley.Genesis
Synopsis
- data ShelleyGenesis era = ShelleyGenesis {
- sgSystemStart ∷ !UTCTime
- sgNetworkMagic ∷ !Word32
- sgNetworkId ∷ !Network
- sgActiveSlotsCoeff ∷ !PositiveUnitInterval
- sgSecurityParam ∷ !Word64
- sgEpochLength ∷ !EpochSize
- sgSlotsPerKESPeriod ∷ !Word64
- sgMaxKESEvolutions ∷ !Word64
- sgSlotLength ∷ !NominalDiffTime
- sgUpdateQuorum ∷ !Word64
- sgMaxLovelaceSupply ∷ !Word64
- sgProtocolParams ∷ !(PParams era)
- sgGenDelegs ∷ !(Map (KeyHash 'Genesis (Crypto era)) (GenDelegPair (Crypto era)))
- sgInitialFunds ∷ !(Map (Addr (Crypto era)) Coin)
- sgStaking ∷ !(ShelleyGenesisStaking (Crypto era))
- alonzoGenesisDefaults ∷ AlonzoGenesis
- shelleyGenesisDefaults ∷ ShelleyGenesis crypto
Documentation
data ShelleyGenesis era #
Constructors
ShelleyGenesis | |
Fields
|
Instances
alonzoGenesisDefaults ∷ AlonzoGenesis Source #
Reasonable starting defaults for constructing an AlonzoGenesis
.
shelleyGenesisDefaults ∷ ShelleyGenesis crypto Source #
Some reasonable starting defaults for constructing a ShelleyGenesis
.
You must override at least the following fields for this to be useful:
sgSystemStart
the time of the first blocksgNetworkMagic
to a suitable testnet or mainnet network magic number.sgGenDelegs
to have some initial nodessgInitialFunds
to have any money in the systemsgMaxLovelaceSupply
must be at least the sum of thesgInitialFunds
but more if you want to allow for rewards.