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

Conversation

@gusin13
Copy link
Contributor

@gusin13 gusin13 commented Jul 2, 2025

No description provided.

@Lazar955 Lazar955 marked this pull request as ready for review July 11, 2025 06:50
Copilot AI review requested due to automatic review settings July 11, 2025 06:50
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 bumps the Babylon SDK to v3 and updates import paths and related logic across the codebase.

  • Updated all Babylon module imports (types, client, x modules) to use github.com/babylonlabs-io/babylon/v3.
  • Adjusted proof‐of‐possession and randomness commit flows to include chainID-based signing contexts.
  • Bumped Go toolchain and dependency versions in go.mod and tools/go.mod.

Reviewed Changes

Copilot reviewed 66 out of 70 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
types/txresponse.go Updated import path to babylon/v3/client/babylonclient.
keyring/keyringcontroller.go Changed CreatePop signature to accept chainID and use FpPopContextV0.
clientcontroller/api/interface.go Added GetFpPopContextV0, GetFpRandCommitContext, and GetFpFinVoteContext.
tools/go.mod Bumped Go version and updated demo SDK, indirect dependencies to v3-compatible.
... All other files similarly updated import paths to babylon/v3 modules.
Comments suppressed due to low confidence (4)

keyring/keyringcontroller.go:121

  • The doc comment above CreatePop should be updated to mention the new chainID parameter and describe how the signing context is derived.
func (kc *ChainKeyringController) CreatePop(chainID string, fpAddr sdk.AccAddress, btcPrivKey *btcec.PrivateKey) (*bstypes.ProofOfPossessionBTC, error) {

finality-provider/service/app.go:494

  • Update or add a doc comment for CreatePop to reflect its new signature (removal of signCtx parameter) and explain how the context is now obtained via app.cc.GetFpPopContextV0().
func (app *FinalityProviderApp) CreatePop(fpAddress sdk.AccAddress, fpPk *bbntypes.BIP340PubKey) (*bstypes.ProofOfPossessionBTC, error) {

clientcontroller/opstackl2/msg.go:44

  • [nitpick] Add a doc comment explaining the purpose of the Config struct and its fields (BsnID, MinPubRand).
type Config struct {

clientcontroller/opstackl2/msg.go:45

  • [nitpick] Consider renaming the field to BSNID to match the uppercase acronym style, or document the chosen casing convention.
	BsnID      string `json:"bsn_id"`

Copy link
Member

@Lazar955 Lazar955 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SebastianElvis SebastianElvis left a comment

Choose a reason for hiding this comment

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

A lot of things!

@Lazar955 Lazar955 merged commit 26b23a6 into main Jul 11, 2025
18 checks passed
@Lazar955 Lazar955 deleted the gusin13/bump-deps branch July 11, 2025 09:00
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.

4 participants