-
Notifications
You must be signed in to change notification settings - Fork 29
chore: recover-rand-proof cosmos #598
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
Conversation
- extend consumerctrl interface - change commands - extend pub rand interface and impl - impl cosmwasm version
There was a problem hiding this 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
QueryPublicRandCommitListmethod 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 |
Adds
recover-rand-proofcmd for cosmos fpd.Next PR will be for rollup fpd, didn't want this PR to be too big.