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

Unified avalanche blockchain deploy flow #2318

Open
meaghanfitzgerald opened this issue Nov 6, 2024 · 1 comment
Open

Unified avalanche blockchain deploy flow #2318

meaghanfitzgerald opened this issue Nov 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@meaghanfitzgerald
Copy link
Collaborator

meaghanfitzgerald commented Nov 6, 2024

Goal

Support PoS and PoA L1 deployment via avalanche blockchain deploy.

Details

On acp-77 branch, the flow to create either a PoA or PoS L1 with the default Validator Manager Contracts should be the essentially identical. When a user is asked which mechanism they would like to use for validator management, their input will determine whether the genesis file is fed either PoA or PoS proxy-implementation contracts to be encoded.

  1. If PoA, the user should be prompted to provide an "owner" address that is required by the PoA contract for future validator addition and removal.

  2. PoS example supported by CLI should be NativeTokenStakingManager. If PoS, the contract is given defaults for the following values:

  • minimum stake amount
  • maximum stake amount
  • minimum stake duration
  • minimum delegation fee
  • maximum stake multiplier
  • weight to value factor

To Note

regardless of the implementation, the initial validators added as part of ConvertSubnetTx are treated as PoA and are not eligible for staking rewards, so no additional prompting needed.

@meaghanfitzgerald
Copy link
Collaborator Author

Reference implementation, POC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

2 participants