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

feat(e2e): add staking admin commands #1815

Closed
wants to merge 1 commit into from
Closed

Conversation

kevinhalliday
Copy link
Contributor

Add Staking.sol admin commands.

  • rewrite Staking.sol to allow for idompentent config managment
  • add upgrade script, so that we can upgrade Staking.sol on Omega
  • add idompentent configure script
  • add e2e cmd to test all admin commands

Additional:

  • namespace admin commands by contract type
  • refactor all admin commands, with less restrictive abstractions
  • move admin command code to e2e/app root

issue: #1814

Comment on lines +77 to +80
if !ok {
log.Info(ctx, "No static staking config, skipping", "network", s.network.ID)
return nil
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now just logging and returning nil. Though we can configure these for devnet / staging & use them in our e2e flow. Right now just do it off of genesis alloc accounts.

Another thing I need to add is how to tests - devnet will just deploy what's in binary. And this command uses what's in binary. So need to add an override for tests.

}

emit AllowlistSet(validators);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes here amount to:

  • replace disableAllowlist / enableAllowlist with setAllowlistEnabled
  • replace allowValidators / disallowValidators with setAllowlist

Add Staking.sol admin commands.

- rewrite Staking.sol to allow for idompentent config managment
- add upgrade script, so that we can upgrade Staking.sol on Omega
- add idompentent configure script
- add e2e cmd to test all admin commands

Additional:

- namespace admin commands by contract type
- refactor all admin commands, with less restrictive abstractions
- move admin command code to e2e/app root
@ttarsi
Copy link
Contributor

ttarsi commented Sep 5, 2024

Closing for #1823

@ttarsi ttarsi closed this Sep 5, 2024
@kevinhalliday kevinhalliday deleted the kh/staking-admin branch September 30, 2024 14:58
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