Merge pull request #4582 from CardanoTokenIO/add-a-new-token-345
Add a New Client Token by SnekX
Add a New Client Token by SnekX
Create a5a205991b7226474d6cdeb7e5e8c9e7e110997a5309abbf975dc563534e45…
Add a New Client Token by SnekX
Add a New Client Token by SnekX
Create 2ff5222d3d6f86163b8bba702ccf647591a2df17c47ac7c66794fd2d474159…
Add a New Client Token by SnekX
Add a New Client Token by SnekX
PizzaMan Dan's Token Submission
This pull request adds the type `BHeader` to the `Cardano.Wallet.Read` hierarchy. ### Comments * To be used later in `Cardano.Wallet.Network.Logging` ### Issue Number ADP-3350
The DRepDistr was being calculated by iterating over the StakeDistr, which meant that delegations that have only rewards and no UTxOs would be left out. This commit changes the calculation to iterate over the DRep delegations in the UMap directly, adding the corresponding rewards and StakeDistr in the calculation and producing a DRepDistr for all DReps that are registered, irrespective of whether they have an associated StakeDistr. Also add `umElemRDDRepActive` to UMap to get only those RDPairs that have an active DRep delegation.
The DRepDistr was being calculated by iterating over the StakeDistr, which meant that delegations that have only rewards and no UTxOs would be left out. This commit changes the calculation to iterate over the DRep delegations in the UMap directly, adding the corresponding rewards and StakeDistr in the calculation and producing a DRepDistr for all DReps that are registered, irrespective of whether they have an associated StakeDistr. Also add `umElemRDDRepActive` to UMap to get only those RDPairs that have an active DRep delegation.