-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension of PoolCurrentPaydayInfo/PoolInfoResponse #587
Conversation
b467dcb
to
7ddf501
Compare
7ddf501
to
1e05bb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth making a explicit ToJSON
/FromJSON
instances for CurrentPaydayBakerPoolStatus
to be consistent in how Nothing
values are represented. Currently, isPrimedForSuspension
and missedRounds
are represented as null
values if Nothing
, while isSuspended
is just not present if it's Nothing
.
Current output of GetPoolStatus
:
{
"allPoolTotalCapital": "57662194352796877",
"bakerAddress": "48XGRnvQoG92T1AwETvW5pnJ1aRSPMKsWtGdKhTqyiNZzMk3Qn",
"bakerEquityCapital": "6621352845013062",
"bakerId": 0,
"bakerStakePendingChange": {
"pendingChangeType": "NoChange"
},
"currentPaydayStatus": {
"bakerEquityCapital": "6620269533524289",
"blocksBaked": 2740,
"commissionRates": {
"bakingCommission": 0.1,
"finalizationCommission": 1.0,
"transactionCommission": 0.1
},
"delegatedCapital": "0",
"effectiveStake": "2882948611945322",
"finalizationLive": true,
"isPrimedForSuspension": null,
"lotteryPower": 9.978157861545638e-2,
"missedRounds": null,
"transactionFeesEarned": "188108074"
},
"delegatedCapital": "0",
"delegatedCapitalCap": "0",
"poolInfo": {
"commissionRates": {
"bakingCommission": 0.1,
"finalizationCommission": 1.0,
"transactionCommission": 0.1
},
"metadataUrl": "",
"openStatus": "closedForAll"
},
"poolType": "BakerPool"
}
@td202 So we would also change how other optional values are represented in |
No, I don't think we should change |
b7319b3
to
a5dd91e
Compare
a5dd91e
to
e662e70
Compare
I see, I added |
Purpose
Add suspension info to
PoolCurrentPaydayInfo
/PoolInfoResponse
. This depends on Concordium/concordium-grpc-api#74.Changes
See above.
Checklist
hard-to-understand areas.
CLA acceptance
_Remove if not applicable.
By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0
link: https://developers.concordium.com/CLAs/Contributor-License-Agreement-v1.0.pdf
I accept the above linked CLA.