The haskell code base still has references to bakers (e.g. in the type names). As a result, the toJSON and fromJSON implementation of the payload prints as transactionType e.g. configureBaker.
Since the name baker was replaced by validator in the public-facing APIs a while ago, the above transactionType should equally reference configureValidator (meaning more clean-up in the type names are needed in the internal haskell code base).
Alternatively, we could manually implement some toJSON/fromJSON instances for relevant types to replace the name to prevent exposing the internal type names.
Task description
The haskell code base still has references to
bakers
(e.g. in the type names). As a result, thetoJSON
andfromJSON
implementation of thepayload
prints astransactionType
e.g.configureBaker
.Since the name
baker
was replaced byvalidator
in the public-facing APIs a while ago, the abovetransactionType
should equally referenceconfigureValidator
(meaning more clean-up in the type names are needed in the internal haskell code base).Alternatively, we could manually implement some
toJSON
/fromJSON
instances for relevant types to replace the name to prevent exposing the internal type names.https://github.com/Concordium/concordium-base/blob/91ef10f5f8d02d3ab2d07b86d8c9085281726620/haskell-src/Concordium/Types/Execution.hs#L326
https://github.com/Concordium/concordium-base/blob/91ef10f5f8d02d3ab2d07b86d8c9085281726620/haskell-src/Concordium/Types/Execution.hs#L416