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

Post-Etna ERC20 validator e2e #591

Closed
wants to merge 11 commits into from
Closed

Post-Etna ERC20 validator e2e #591

wants to merge 11 commits into from

Conversation

cam-schultz
Copy link
Contributor

@cam-schultz cam-schultz commented Oct 9, 2024

Why this should be merged

Implements the full validator registration flow post Etna for ERC20 PoSValidatorManagers

Review focus:

  • tests/flows/validator-manager/erc20_token_staking.go

How this works

Adds support for issuing P-Chain tx's. Converts the subnet to permissionless as part of the test flow.
This PR is NOT expected to pass CI. The main objective of this PR is to add the functionality needed to convert all tests to post-Etna validator management via the ValidatorManager contract. A following PR will implement that refactor.

How this was tested

How is this documented

signatureAggregator,
utils.DefaultMinStakeAmount*10,
)
// _ = utils.InitializeERC20TokenValidatorSet(

Choose a reason for hiding this comment

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

Why is this getting commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one of a series of PRs (#585 and #592) that touch individual parts of the contracts and testing components. Rather than getting each to pass CI individually, I elected to stub/comment out incompatible code. The final PR in the series has everything intact. The focus for this PR is really only erc20_staking.go

Expect(err).Should(BeNil())
}

// Sort the nodeIDs so that the subnet conversion ID matches the P-Chain

Choose a reason for hiding this comment

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

Suggested change
// Sort the nodeIDs so that the subnet conversion ID matches the P-Chain
// Sort the nodeIDs so that the Subnet conversion ID matches the P-Chain

SECURITY.md Outdated
@@ -4,13 +4,13 @@ Avalanche takes the security of the platform and of its users very seriously. We

## Reporting a Vulnerability

**Please do not file a public ticket** mentioning the vulnerability. To disclose a vulnerability submit it through our [Bug Bounty Program](https://hackenproof.com/avalanche).
**Please do not file a public ticket** mentioning the vulnerability. To disclose a vulnerability submit it through our [Bug Bounty Program](https://immunefi.com/bug-bounty/avalanche/information/).
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is already updated in main. Could we pull those commits in so to reduce the diff in this PR?

Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

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

Generally looks good, there's some commented-out code in the PR though

@cam-schultz
Copy link
Contributor Author

Generally looks good, there's some commented-out code in the PR though

I think I goofed my branches somewhere along the line, sorry about that. For this PR, only erc20_token_staking.go should be considered in scope. The followup PR #592 includes all changes with everything enabled.

@cam-schultz
Copy link
Contributor Author

I'm going to close this out and include the changes here in #592. I think that separating these changes resulted in more confusion than help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

4 participants