Skip to content

Conversation

@tclemos
Copy link
Contributor

@tclemos tclemos commented Oct 7, 2025

closes https://github.com/0xPolygon/devtools/issues/419

The aggkit bridge service requires the l1-info-tree-index to be provided to generate the proof for claiming an asset or message. The l1-info-tree-index is loaded automatically using the network_id and deposit_count.

The new flag --proof-l1-info-tree-index allows the user to force a specific l1 info tree index while claiming an asset or message via the aggkit bridge service

@tclemos tclemos self-assigned this Oct 7, 2025
@tclemos tclemos requested a review from Copilot October 8, 2025 15:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for specifying a custom L1 Info Tree Index when claiming assets or messages through the aggkit bridge service. The new --proof-l1-info-tree-index flag allows users to override the automatic L1 Info Tree Index resolution that normally occurs via network_id and deposit_count.

Key changes:

  • Added new CLI flag --proof-l1-info-tree-index for claim asset and message commands
  • Refactored bridge service interface to support multiple proof generation methods
  • Updated documentation to reflect the new flag option

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
cmd/ulxly/ulxly.go Added flag handling and updated proof generation logic to support L1 Info Tree Index override
cmd/ulxly/bridge_service/interface.go Refactored interface to separate proof methods by source (default, GER, L1InfoTreeIndex)
cmd/ulxly/bridge_service/legacy/service.go Implemented new interface methods, added error handling for unsupported L1InfoTreeIndex
cmd/ulxly/bridge_service/aggkit/service.go Refactored proof generation logic to support L1InfoTreeIndex parameter
doc/*.md Updated documentation to include the new flag description

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tclemos tclemos merged commit bd9923c into main Oct 14, 2025
15 checks passed
@tclemos tclemos deleted the thiago/ulxly-proof-by-l1-info-tree-index branch October 14, 2025 04:07
minhd-vu pushed a commit that referenced this pull request Oct 14, 2025
…message (#726)

* ulxly: add l1-info-tree-index flag for claim asset and message for aggkit bridge service

* make proof-ger and proog-l1-info-tree-index mutually exclusive
minhd-vu pushed a commit that referenced this pull request Oct 14, 2025
…message (#726)

* ulxly: add l1-info-tree-index flag for claim asset and message for aggkit bridge service

* make proof-ger and proog-l1-info-tree-index mutually exclusive
minhd-vu pushed a commit that referenced this pull request Oct 14, 2025
…message (#726)

* ulxly: add l1-info-tree-index flag for claim asset and message for aggkit bridge service

* make proof-ger and proog-l1-info-tree-index mutually exclusive
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.

3 participants