From fe28ce25dd000df9be56b38ecd8dc8ca13b707de Mon Sep 17 00:00:00 2001 From: Emil Lai Date: Fri, 11 Aug 2023 10:58:18 +0200 Subject: [PATCH 1/2] Support for returning current commission rates for a baker pool. --- ChangeLog.md | 1 + deps/concordium-base | 2 +- src/Concordium/Client/GRPC2.hs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index a0efb549..ed874740 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,6 +4,7 @@ - End stream consumption early if an error is returned. - Add raw support for `GetBakersRewardPeriod`. +- Add support for `CommissionRates` in `CurrentPaydayBakerPoolStatus` ## 6.0.1 diff --git a/deps/concordium-base b/deps/concordium-base index fba68b5b..01b8dca9 160000 --- a/deps/concordium-base +++ b/deps/concordium-base @@ -1 +1 @@ -Subproject commit fba68b5b92822a5e6c70cbf3acfb966f8a76f452 +Subproject commit 01b8dca9693d90bd6b347ac1202887170035c52e diff --git a/src/Concordium/Client/GRPC2.hs b/src/Concordium/Client/GRPC2.hs index 77e4bbd6..a3529391 100644 --- a/src/Concordium/Client/GRPC2.hs +++ b/src/Concordium/Client/GRPC2.hs @@ -929,6 +929,7 @@ instance FromProto Proto.PoolCurrentPaydayInfo where let bpsLotteryPower = cpi ^. ProtoFields.lotteryPower bpsBakerEquityCapital <- fromProto $ cpi ^. ProtoFields.bakerEquityCapital bpsDelegatedCapital <- fromProto $ cpi ^. ProtoFields.delegatedCapital + bpsCommissionRates <- fromProto $ cpi ^. ProtoFields.commissionRates return CurrentPaydayBakerPoolStatus{..} instance FromProto Proto.PoolInfoResponse where From 3045cd960cac4130ed5fda1278b7298a1d5c73f2 Mon Sep 17 00:00:00 2001 From: Emil Lai Date: Mon, 14 Aug 2023 10:42:26 +0200 Subject: [PATCH 2/2] Update changelog. --- ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index ed874740..68b5adbd 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,7 +4,7 @@ - End stream consumption early if an error is returned. - Add raw support for `GetBakersRewardPeriod`. -- Add support for `CommissionRates` in `CurrentPaydayBakerPoolStatus` +- Add support for `CommissionRates` in `CurrentPaydayBakerPoolStatus` (Only available for node versions > 6.0). ## 6.0.1