With the cooldown changes, the PoolStatus datastructure was split into BakerPoolStatus and PassiveDelegationStatus, and ActiveBakerPoolStatus was factored out (under a Maybe). This last change in particular meant that the deriveJSON instances for BakerPoolStatus would not be backwards compatible. This rectifies that.
Changes
Implement manual ToJSON and FromJSON instances for BakerPoolStatus that inline the ActiveBakerPoolStatus fields.
Checklist
[X] My code follows the style of this project.
[X] The code compiles without warnings.
[X] I have performed a self-review of the changes.
[ ] I have documented my code, in particular the intent of the
hard-to-understand areas.
Purpose
With the cooldown changes, the
PoolStatus
datastructure was split intoBakerPoolStatus
andPassiveDelegationStatus
, andActiveBakerPoolStatus
was factored out (under aMaybe
). This last change in particular meant that thederiveJSON
instances forBakerPoolStatus
would not be backwards compatible. This rectifies that.Changes
ToJSON
andFromJSON
instances forBakerPoolStatus
that inline theActiveBakerPoolStatus
fields.Checklist