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

Parsing acp-77 warp payloads #3270

Merged
merged 16 commits into from
Sep 25, 2024
Merged

Parsing acp-77 warp payloads #3270

merged 16 commits into from
Sep 25, 2024

Conversation

darioush
Copy link
Contributor

@darioush darioush commented Aug 5, 2024

Why this should be merged

Adds type definitions for the Warp message payloads that the P-Chain signs to implement subnet-only validators, as specified in ACP-77

How this works

Defines the Warp message payload types and registers them with the codec.

How this was tested

CI

@cam-schultz cam-schultz self-assigned this Aug 21, 2024
@cam-schultz cam-schultz marked this pull request as ready for review August 22, 2024 15:17
@cam-schultz cam-schultz changed the title wip: parsing acp-77 warp payloads Parsing acp-77 warp payloads Aug 22, 2024
Copy link
Contributor

@marun marun left a comment

Choose a reason for hiding this comment

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

Is there follow-on work expected that would exercise these new payloads? Even at the risk of a larger review burden, I think it's generally preferable for new code to be exercised in CI before merge.

vms/platformvm/warp/messages/payload.go Outdated Show resolved Hide resolved
vms/platformvm/warp/messages/register_subnet_validator.go Outdated Show resolved Hide resolved
@cam-schultz
Copy link
Contributor

Is there follow-on work expected that would exercise these new payloads? Even at the risk of a larger review burden, I think it's generally preferable for new code to be exercised in CI before merge.

I added unit tests for the new package. Until a non-dummy signature request handler is added, I'm not sure how meaningful an E2E or integration test would be. In the meantime, we have incorporated these types and the dummy handler in our E2E testing on the staking contract side. The relevant bit of that testing is that we're able to construct signed Warp messages that contain payloads of these types, and verify them in the smart contract using the Warp precompile.

@cam-schultz cam-schultz requested a review from marun August 22, 2024 21:53
Copy link
Contributor

@marun marun left a comment

Choose a reason for hiding this comment

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

LGTM

@StephenButtolph StephenButtolph added this to the v1.11.12 milestone Sep 25, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Sep 25, 2024
Merged via the queue into master with commit 1ff60f6 Sep 25, 2024
22 checks passed
@StephenButtolph StephenButtolph deleted the uptime-message branch September 25, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants