cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.ProtocolParameters

Synopsis

Documentation

protocolParamsToUtxoRpcPParams :: Era era -> PParams (LedgerEra era) -> Proto PParams Source #

Convert full ledger protocol parameters to the UTxO RPC PParams message. All parameters are set.

pparamsUpdateToUtxoRpcPParams :: ConwayEraPParams era => PParamsUpdate era -> Proto PParams Source #

Convert a ledger protocol parameter update to the UTxO RPC PParams message. Only the parameters present in the update are set, everything else keeps the proto3 default. The protocol version is excluded: from Conway onwards it can only change through a hard fork initiation action.

utxoRpcProtocolVersionToProtVer :: Proto ProtocolVersion -> Maybe ProtVer Source #

Build a ledger protocol version from the proto ProtocolVersion. The conversion can fail, because the ledger major Version is bounded, while the proto major is a full uint32.