这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Aug 7, 2025

Adds recover-rand-proof cmd for cosmos fpd.

Next PR will be for rollup fpd, didn't want this PR to be too big.

@Lazar955 Lazar955 marked this pull request as ready for review August 7, 2025 21:05
Copy link
Contributor

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 the recover-rand-proof command functionality for cosmos finality provider daemon (fpd). The command helps recover public randomness proofs from a consumer chain back to the local database after a data loss scenario.

  • Refactors the PubRandCommit interface to use getter methods for better abstraction across different chain types
  • Implements QueryPublicRandCommitList method across all consumer controllers (Babylon, Cosmos, Rollup)
  • Updates the recover-proof command to work with the new interface and accept a consumer controller parameter

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
types/pub_rand_commit.go Adds getter methods to PubRandCommit interface for better abstraction
finality-provider/cmd/fpd/daemon/recover_proof.go Refactors recover proof command to accept consumer controller and use new interface methods
clientcontroller/babylon/pubrand.go Creates separate file for BabylonPubRandCommit struct with interface implementation
clientcontroller/babylon/consumer.go Moves BabylonPubRandCommit to separate file and updates QueryPublicRandCommitList signature
clientcontroller/api/interface.go Adds QueryPublicRandCommitList method to RandomnessCommitter interface
bsn/rollup/clientcontroller/pubrand.go Creates RollupPubRandCommit struct with getter methods
bsn/rollup/clientcontroller/consumer.go Adds stub implementation of QueryPublicRandCommitList
bsn/cosmos/clientcontroller/consumer.go Implements QueryPublicRandCommitList method for cosmos consumer controller
bsn/cosmos/e2e/bcd_consumer_e2e_test.go Adds comprehensive test for recover-proof command functionality

@Lazar955 Lazar955 merged commit f6a37ac into main Aug 8, 2025
18 checks passed
@Lazar955 Lazar955 deleted the lazar/recover-rand-proof-cosmos branch August 8, 2025 06:54
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