| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Node.Emulator.Params
Description
The set of parameters, like protocol parameters and slot configuration.
Synopsis
- data Params = Params {}
- 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
- 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
Constructors
| Params | |
Fields | |
Instances
| Eq Params Source # | |
| Show Params Source # | |
| Generic Params Source # | |
| ToJSON Params Source # | |
| FromJSON Params Source # | |
| Default Params Source # | |
Defined in Cardano.Node.Emulator.Params | |
| Pretty Params Source # | |
| type Rep Params Source # | |
Defined in Cardano.Node.Emulator.Params type Rep Params = D1 ('MetaData "Params" "Cardano.Node.Emulator.Params" "cardano-node-emulator-1.1.0.0-86RbaXcxDhk56O3Y8j0lgb" 'False) (C1 ('MetaCons "Params" 'PrefixI 'True) (S1 ('MetaSel ('Just "pSlotConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotConfig) :*: (S1 ('MetaSel ('Just "emulatorPParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PParams) :*: S1 ('MetaSel ('Just "pNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId)))) | |
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.
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
emulatorEraHistory :: Params -> EraHistory CardanoMode Source #
A sensible default EraHistory value for the emulator
Orphan instances
| ToJSON NetworkId Source # | |
| ToJSON NetworkMagic Source # | |
Methods toJSON :: NetworkMagic -> Value Source # toEncoding :: NetworkMagic -> Encoding Source # toJSONList :: [NetworkMagic] -> Value Source # toEncodingList :: [NetworkMagic] -> Encoding Source # | |
| FromJSON NetworkId Source # | |
| FromJSON NetworkMagic Source # | |
Methods parseJSON :: Value -> Parser NetworkMagic Source # parseJSONList :: Value -> Parser [NetworkMagic] Source # | |
| Default ProtocolParameters Source # | |
Methods | |