Safe Haskell | None |
---|---|
Language | Haskell2010 |
The set of parameters, like protocol parameters and slot configuration.
Synopsis
- data Params = Params {
- pSlotConfig :: !SlotConfig
- emulatorPParams :: !PParams
- pNetworkId :: !NetworkId
- paramsWithProtocolsParameters :: SlotConfig -> ProtocolParameters -> NetworkId -> Params
- slotConfigL :: Lens' Params SlotConfig
- emulatorPParamsL :: Lens' Params PParams
- pParamsFromProtocolParams :: ProtocolParameters -> PParams
- pProtocolParams :: Params -> ProtocolParameters
- protocolParamsL :: Lens' Params ProtocolParameters
- networkIdL :: Lens' Params NetworkId
- increaseTransactionLimits :: Params -> Params
- increaseTransactionLimits' :: Natural -> Natural -> Natural -> Params -> Params
- genesisDefaultsFromParams :: Params -> ShelleyGenesis EmulatorEra
- type EmulatorEra = BabbageEra StandardCrypto
- type PParams = PParams EmulatorEra
- slotLength :: Params -> SlotLength
- testnet :: NetworkId
- emulatorEpochSize :: EpochSize
- emulatorGlobals :: Params -> Globals
- emulatorEraHistory :: Params -> EraHistory CardanoMode
Documentation
Params | |
|
Instances
paramsWithProtocolsParameters :: SlotConfig -> ProtocolParameters -> NetworkId -> Params Source #
slotConfigL :: Lens' Params SlotConfig Source #
emulatorPParamsL :: Lens' Params PParams Source #
pParamsFromProtocolParams :: ProtocolParameters -> PParams Source #
pProtocolParams :: Params -> ProtocolParameters Source #
protocolParamsL :: Lens' Params ProtocolParameters Source #
networkIdL :: Lens' Params NetworkId Source #
increaseTransactionLimits :: Params -> Params Source #
Set higher limits on transaction size and execution units.
This can be used to work around MaxTxSizeUTxO
and ExUnitsTooBigUTxO
errors.
Note that if you need this your Plutus script will probably not validate on Mainnet.
genesisDefaultsFromParams :: Params -> ShelleyGenesis EmulatorEra Source #
cardano-ledger specific types and conversion functions
type EmulatorEra = BabbageEra StandardCrypto Source #
The default era for the emulator
type PParams = PParams EmulatorEra Source #
slotLength :: Params -> SlotLength Source #
Calculate the cardano-ledger SlotLength
emulatorEpochSize :: EpochSize Source #
A sensible default EpochSize
value for the emulator
emulatorGlobals :: Params -> Globals Source #
A sensible default Globals
value for the emulator
emulatorEraHistory :: Params -> EraHistory CardanoMode Source #
A sensible default EraHistory
value for the emulator
Orphan instances
FromJSON NetworkId Source # | |
parseJSON :: Value -> Parser NetworkId parseJSONList :: Value -> Parser [NetworkId] | |
FromJSON NetworkMagic Source # | |
parseJSON :: Value -> Parser NetworkMagic parseJSONList :: Value -> Parser [NetworkMagic] | |
ToJSON NetworkId Source # | |
toJSON :: NetworkId -> Value toEncoding :: NetworkId -> Encoding toJSONList :: [NetworkId] -> Value toEncodingList :: [NetworkId] -> Encoding | |
ToJSON NetworkMagic Source # | |
toJSON :: NetworkMagic -> Value toEncoding :: NetworkMagic -> Encoding toJSONList :: [NetworkMagic] -> Value toEncodingList :: [NetworkMagic] -> Encoding | |
Default ProtocolParameters Source # | |
def :: ProtocolParameters |