Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/move-era-based-protocol-parameters-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project: cardano-api
pr: 1336
kind:
- refactoring
description: |
Moved `EraBasedProtocolParametersUpdate`, its era-sliced record types (`CommonProtocolParametersUpdate`, `AlonzoOnwardsPParams`, `IntroducedIn*PParams`, `DeprecatedAfter*PParams`, `ShelleyToAlonzoPParams`), `createEraBasedProtocolParamUpdate`, `createPParams`, and the pre-Conway `UpdateProposal` machinery (`makeShelleyUpdateProposal`, `toLedgerUpdate`, `fromLedgerUpdate`, `toLedgerProposedPPUpdates`, `fromLedgerProposedPPUpdates`, `fromLedgerPParamsUpdate`) out of `Cardano.Api.ProtocolParameters` into a new module `Cardano.Api.Compatible.ProtocolParametersUpdate`. `Cardano.Api.ProtocolParameters` re-exports the new module, so its export list and `Cardano.Api` are unchanged; the moved items are additionally available via `Cardano.Api.Compatible`.
1 change: 1 addition & 0 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ library
Cardano.Api.Byron
Cardano.Api.Compatible
Cardano.Api.Compatible.Certificate
Cardano.Api.Compatible.ProtocolParametersUpdate
Cardano.Api.Compatible.Tx
Cardano.Api.Consensus
Cardano.Api.Crypto.Ed25519Bip32
Expand Down
4 changes: 3 additions & 1 deletion cardano-api/src/Cardano/Api/Compatible.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Cardano.Api.Compatible
( module Cardano.Api.Compatible.Tx
( module Cardano.Api.Compatible.ProtocolParametersUpdate
, module Cardano.Api.Compatible.Tx
)
where

import Cardano.Api.Compatible.ProtocolParametersUpdate
import Cardano.Api.Compatible.Tx
Loading
Loading