Skip to content
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

[TA-3279] Poa module invariants #37

Merged
merged 41 commits into from
Nov 6, 2024

Conversation

GuillemGarciaDev
Copy link
Contributor

[TA-3279] Poa module invariants

Motivation 💡

  • This PR aims to add cosmos-sdk Invariants for the poa module. This invariants check validators staking power, self delegations and dependencies params.

Changes 🛠

  • Added StakingPowerInvariant to check that every validator has DefaultPowerReduction or 0 tokens.
  • Added SelfDelegationInvariant to check that all delegations matches their delegator address and validator address
  • Added CheckKeeperDependenciesParamsInvariant to assert that the poa keeper dependencies params are correct.

Dependencies 📦

#36

GuillemGarciaDev and others added 30 commits September 6, 2024 16:13
@GuillemGarciaDev GuillemGarciaDev marked this pull request as ready for review September 16, 2024 07:46
@AdriaCarrera AdriaCarrera merged commit 563a2d5 into xrplevm:main Nov 6, 2024
1 check passed
@AdriaCarrera AdriaCarrera deleted the feat/poa/register-invariants branch November 6, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants