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

Conversation

@SebastianElvis
Copy link
Member

@SebastianElvis SebastianElvis commented Jul 17, 2025

Resolves #503

This PR removes the dependency to finality gadget in rollup-fpd, removes certain unused varaibles/functions, and makes certain functions private.

@SebastianElvis SebastianElvis marked this pull request as ready for review July 17, 2025 02:10
Copilot AI review requested due to automatic review settings July 17, 2025 02:10
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 removes the coupling to the finality gadget from the rollup finality provider, cleans up unused code, and tightens visibility on internal methods.

  • Removed the finality-gadget module from dependencies.
  • Deleted BabylonFinalityGadgetRpc and its uses in configs and tests.
  • Stripped out unused imports/consts and made several methods private with nolint where appropriate.

Reviewed Changes

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

Show a summary per file
File Description
go.mod Removed github.com/babylonlabs-io/finality-gadget dependency
bsn/rollup-finality-provider/e2e/op_test_manager.go Deleted unused test config BabylonFinalityGadgetRpc
bsn/rollup-finality-provider/config/config.go Removed BabylonFinalityGadgetRpc field from RollupFPConfig
bsn/rollup-finality-provider/clientcontroller/consumer.go Cleared unused math import/consts, excised obsolete methods, lowercased/exposed internals
CHANGELOG.md Added entry for PR #526 and reordered entries for clarity
Comments suppressed due to low confidence (2)

CHANGELOG.md:51

  • [nitpick] Inconsistent issue reference formatting: some entries use [515] while others use [#517]. Standardize to include the # for consistency across changelog entries.
* [515](https://github.com/babylonlabs-io/finality-provider/pull/515) chore: abstract randomness committer

bsn/rollup-finality-provider/clientcontroller/consumer.go:98

  • Lowercasing QueryContractConfig to queryContractConfig may break the api.ConsumerController interface assertion (var _ api.ConsumerController = &RollupBSNController{}) if the interface expects it exported. Ensure the interface definition is updated or keep this method public.
func (cc *RollupBSNController) queryContractConfig(ctx context.Context) (*Config, error) {

@SebastianElvis SebastianElvis merged commit 27a44e6 into main Jul 17, 2025
18 checks passed
@SebastianElvis SebastianElvis deleted the rm-unused-interfaces branch July 17, 2025 09:04
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.

rollup: remove dependency to finality gadget in rollup BSN FP

4 participants