Proto/Adaptive Inflation: add baker parameters
We want the baker to be able to set 2 parameters:
- their own
staking_over_baking_limit- ideally a
Qbut probably easier to just use auint32of1/1_000_000s. - should be
>= 0but let's not worry about a value that would be over the globalstaking_over_baking_limit - see
Frozen_deposits_limitinStorage - default (unset) is 0
- ideally a
- their
baking_over_staking_edge- ideally a
Qbut... (same thing, maybe a value between0and1_000_000_000) - should mean a value between
0and100% - same thing for storage
- default (unset) is whatever
- ideally a
- both parameters must take
preserved_cyclesto be taken into account- probably better to look at
Pending_consensus_keyfor the storage and cleanup
- probably better to look at
- setting them via a pseudo-transfer of the baker to themself
- see
"stake"inApply - both are set at the same time (forces baker to care about both)
- entrypoint named
set_delegate_parameters? - allowed for delegates only
- amount must be zero
- parameter is a tuple
pair (nat, pair (nat, unit))(unitmay allow adding more parameters later more easily)
- see
Edited by Mehdi Bouaziz