This PR implements the new voting power design, please refer to the above documentation for more details.
voting power design
Customizing epoch for every AVS hasn't been implemented here, this might be implemented in the AVS module. So for dogfood, voting power will still be updated each block, because the mock AVS configures one block as the epoch duration of the dogfood.
Additionally, the mock AVS configures all registered assets as the default supported assets of all AVSs.
change
fix the bug regarding querying parameters in the assets module.
bug info
using the share mechanism in the delegation module
refactor some functions about state updating and retrieving in the assets and delegation modules.
implementing new voting power calculation in the operator module
removing the voting power state storage for stakers
implementing the instant and no-instantaneous slash in the operator module
fix all existing tests influenced by the change
merge the develop branch and fix conflict
todo
implementing the customized epoch for every AVS in the AVS module
Description
This PR implements the new voting power design, please refer to the above documentation for more details. voting power design
Customizing epoch for every AVS hasn't been implemented here, this might be implemented in the AVS module. So for dogfood, voting power will still be updated each block, because the mock AVS configures one block as the epoch duration of the dogfood. Additionally, the mock AVS configures all registered assets as the default supported assets of all AVSs.
change
todo