8000 Remove legacy warp handlers by ceyonur · Pull Request #999 · ava-labs/coreth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove legacy warp handlers #999

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

Merged
merged 27 commits into from
Jul 1, 2025
Merged

Remove legacy warp handlers #999

merged 27 commits into from
Jul 1, 2025

Conversation

ceyonur
Copy link
Collaborator
@ceyonur ceyonur commented May 31, 2025

Why this should be merged

Before Etna we have added a support for acp118 handlers. After Etna this has become the default option for clients, so we should be able to remove legacy handlers.

How this works

This pull request removes support for warp signature requests in the plugin/evm package, replacing the existing message and block signature request handling with a streamlined approach using protobuf-based signature requests. The changes simplify the codebase by eliminating redundant types, methods, and tests related to warp signature requests.

Removal of Legacy Warp Signature Request Handling

  • Codebase Cleanup:

    • Removed the MessageSignatureRequest, BlockSignatureRequest, and SignatureResponse types from plugin/evm/message/signature_request.go, along with their associated serialization, deserialization, and handling logic.
    • Deleted tests for the removed types from plugin/evm/message/signature_request_test.go.
  • Handler Updates:

    • Removed HandleMessageSignatureRequest and HandleBlockSignatureRequest methods from the RequestHandler interface in plugin/evm/message/handler.go.
    • Updated networkHandler in plugin/evm/network_handler.go to remove handling logic for warp signature requests, including the signatureRequestHandler field and its initialization. [1] [2]

Transition to Protobuf-Based Signature Requests

  • Protobuf Integration:
    • Updated the NetworkSignatureGetter in warp/aggregator/signature_getter.go to use protobuf-based sdk.SignatureRequest messages instead of the removed warp-specific request types.

Test Updates

  • Refactored Tests:
    • Updated plugin/evm/vm_warp_test.go to use protobuf-based signature requests and responses, replacing legacy warp signature request tests with new test cases for message and block signature handling. [1] [2]

These changes streamline warp signature handling, improve maintainability, and align the codebase with protobuf-based messaging standards.

How this was tested

Updated tests

Need to be documented?

No

Need to update RELEASES.md?

Yes

@ceyonur ceyonur marked this pull request as ready for review May 31, 2025 18:57
@ceyonur ceyonur requested a review from a team as a code owner May 31, 2025 18:57
@ceyonur ceyonur marked this pull request as draft May 31, 2025 19:43
@ceyonur ceyonur changed the base branch from master to add-warp-tests June 2, 2025 16:55
Base automatically changed from add-warp-tests to master June 26, 2025 15:13
@ceyonur ceyonur marked this pull request as ready for review June 27, 2025 15:32
Copy link
Contributor
@alarso16 alarso16 left a comment

Choose a reason for hiding this comment

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

fwict looks good, 8000 left some nonblocking comments

@ceyonur ceyonur enabled auto-merge June 30, 2025 18:38
@ceyonur ceyonur added this pull request to the merge queue Jul 1, 2025
Merged via the queue into master with commit c73fe66 Jul 1, 2025
10 checks passed
@ceyonur ceyonur deleted the remove-legacy-warp-handlers branch July 1, 2025 11:26
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
0