Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Genesis
Contents
Synopsis
- data ShelleyGenesis c = ShelleyGenesis {
- sgSystemStart :: !UTCTime
- sgNetworkMagic :: !Word32
- sgNetworkId :: !Network
- sgActiveSlotsCoeff :: !PositiveUnitInterval
- sgSecurityParam :: !Word64
- sgEpochLength :: !EpochSize
- sgSlotsPerKESPeriod :: !Word64
- sgMaxKESEvolutions :: !Word64
- sgSlotLength :: !NominalDiffTimeMicro
- sgUpdateQuorum :: !Word64
- sgMaxLovelaceSupply :: !Word64
- sgProtocolParams :: !(PParams (ShelleyEra c))
- sgGenDelegs :: !(Map (KeyHash 'Genesis c) (GenDelegPair c))
- sgInitialFunds :: ListMap (Addr c) Coin
- sgStaking :: ShelleyGenesisStaking c
- shelleyGenesisDefaults :: ShelleyGenesis StandardCrypto
- type ByronGenesisConfig = Config
- type ShelleyGenesisConfig = ShelleyConfig
- type AlonzoGenesisConfig = AlonzoGenesis
- type ConwayGenesisConfig = ConwayGenesis StandardCrypto
- data ShelleyConfig = ShelleyConfig {}
- newtype GenesisHashByron = GenesisHashByron {
- unGenesisHashByron :: Text
- newtype GenesisHashShelley = GenesisHashShelley {
- unGenesisHashShelley :: Hash Blake2b_256 ByteString
- newtype GenesisHashAlonzo = GenesisHashAlonzo {
- unGenesisHashAlonzo :: Hash Blake2b_256 ByteString
- newtype GenesisHashConway = GenesisHashConway {
- unGenesisHashConway :: Hash Blake2b_256 ByteString
- type ByronGenesisFile = File ByronGenesisConfig
- type ShelleyGenesisFile = File ShelleyGenesisConfig
- type AlonzoGenesisFile = File AlonzoGenesisConfig
- type ConwayGenesisFile = File ConwayGenesisConfig
Documentation
data ShelleyGenesis c #
Constructors
ShelleyGenesis | |
Fields
|
Instances
shelleyGenesisDefaults :: ShelleyGenesis StandardCrypto 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.
Configuration
type ByronGenesisConfig = Config Source #
type ShelleyGenesisConfig = ShelleyConfig Source #
type AlonzoGenesisConfig = AlonzoGenesis Source #
type ConwayGenesisConfig = ConwayGenesis StandardCrypto Source #
data ShelleyConfig Source #
Constructors
ShelleyConfig | |
Fields |
newtype GenesisHashByron Source #
Constructors
GenesisHashByron | |
Fields
|
Instances
Eq GenesisHashByron Source # | |
Defined in Cardano.Api.Genesis Methods (==) :: GenesisHashByron -> GenesisHashByron -> Bool Source # (/=) :: GenesisHashByron -> GenesisHashByron -> Bool Source # | |
Show GenesisHashByron Source # | |
Defined in Cardano.Api.Genesis |
newtype GenesisHashShelley Source #
Constructors
GenesisHashShelley | |
Fields
|
Instances
Eq GenesisHashShelley Source # | |
Defined in Cardano.Api.Genesis Methods (==) :: GenesisHashShelley -> GenesisHashShelley -> Bool Source # (/=) :: GenesisHashShelley -> GenesisHashShelley -> Bool Source # | |
Show GenesisHashShelley Source # | |
Defined in Cardano.Api.Genesis |
newtype GenesisHashAlonzo Source #
Constructors
GenesisHashAlonzo | |
Fields
|
Instances
Eq GenesisHashAlonzo Source # | |
Defined in Cardano.Api.Genesis Methods (==) :: GenesisHashAlonzo -> GenesisHashAlonzo -> Bool Source # (/=) :: GenesisHashAlonzo -> GenesisHashAlonzo -> Bool Source # | |
Show GenesisHashAlonzo Source # | |
Defined in Cardano.Api.Genesis |
newtype GenesisHashConway Source #
Constructors
GenesisHashConway | |
Fields
|
Instances
Eq GenesisHashConway Source # | |
Defined in Cardano.Api.Genesis Methods (==) :: GenesisHashConway -> GenesisHashConway -> Bool Source # (/=) :: GenesisHashConway -> GenesisHashConway -> Bool Source # | |
Show GenesisHashConway Source # | |
Defined in Cardano.Api.Genesis |