Skip to content
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

feat: merge base branch to main #402

Merged
merged 94 commits into from
Jan 23, 2025
Merged

Conversation

SebastianElvis
Copy link
Member

@SebastianElvis SebastianElvis commented Jan 14, 2025

This PR merges the base branch with phase-3 codebase to main.

Comparison between base and main: https://babylonlabs.atlassian.net/wiki/spaces/BABYLON/pages/5905879

SebastianElvis and others added 30 commits July 4, 2024 15:42
* Add chain register struct
* Add chain registry
* Add chain registry test
* Add chain registry queries
* Add chain registry queries tests
* Add register chain msg
* Add register chain msg routing / impl
* Update proto/babylon/zoneconcierge/v1/tx.proto
* Flatten chain register proto
* Remove authority from register chain msg
* Add chain not registered check
* Add chain already registered check
* Update / fix comment
* Add registry related queries to rpc server
* Fix indentation
* Fix: Add signer field to register chain msg
* Fix: Own / unique query param / response for list registry
* Move btcstkconsumer proto files under v1/ for consistency
* Move register chain protos from zoneconcierge to btcstkconsumer
* Refactor chain registry into btcstkconsumer
* Fix: proto / code lints
* Pass chain register pointer

Co-authored-by: Runchao Han <[email protected]>
* Register zoneconcierge msg codecs
* Register btcstkconsumer msg codecs
* Add chain id to finality provider
* Add finality provider registry
* Update fps per chain id registry
* Remove commented line
* FP registers only non-canonical chains
* Add FP registry test
* Add registered chain check
* Add registration check to fp registry test
* Remove optional from chain id
* Add own CZ chains FPs store
* Store CZ chains FPs in their own store
* Adjust names / tests
* Refactor fp consumer registry
* Adapt tests
* Rename for clarity
* Add FP CZ chains registry queries
* Add FP consumer query tests
* Adapt test
* Add chain id to fp query response
* Remove useless slash condition check
* Improve error msg
* Move type builder to types package
* Add chains per FP BTC PubKey store
* Ensure CZ chains FP does not already exist
* Fix: Return err explicitly instead of nil
* Fix typos
* Add register chain cli tx
* Add chain id to btcstaking create-finality-provider
* Add get finality provider by chain queries
* Add registered chains cli queries
* Add FZ FP chain id query type
* Add get CZ FP chain getter / query
* Add grpc query. Adjust grpc query paths
* Add CZ FP registered chain cli query cmd
* Fix: Add tx flags for register chain cmd
* Turn consumer chain id into a flag instead of a param
* Fix params module import
* Add hook to query consumer fps through btcstaking
* Rename consumer keys for clarity
* Rename btc staking consumer methods
* Rename consumer delegation private methods
* Move consumer delegations to btcstaking
* Refactor BTC delegations into one store
* Simplify logic
* Improve comments
* Add needed (for babylon as Consumer) staking capability
* Upgrade contracts from latest babylon-contract
* Support Mac arm64 arch in passing for copy local wasm
* Fix: FP fields protobuf sequence numbers
* Update contracts to latest
* Fix: make proto-gen
* Trim unused fields from new finality provider IBC msg
* Update protobuf gens
* Update code refs
@SebastianElvis
Copy link
Member Author

Thanks @RafilxTenfen for the second wave of comments. Addressed them in #424

Copy link
Contributor

@maurolacy maurolacy left a comment

Choose a reason for hiding this comment

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

LGTM.

Reviewed more or less everything, except for the re-added zoneconcierge module. Perhaps it's a good idea to compare the x/zoneconcierge directory here with the latest version (before deletion) from main; to confirm we're not losing any potential new addition there.

CHANGELOG.md Outdated
@@ -31,7 +31,35 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

All notable changes to this project will be documented in this file.
## [Unreleased](https://github.com/babylonchain/babylon-private/tree/HEAD)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This need updating. Likely after merge.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, addressed at a7e939d

Copy link
Collaborator

@KonradStaniec KonradStaniec left a comment

Choose a reason for hiding this comment

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

lgtm! just minor comments about changelog.

Lets wait for other core team members approval before merging though.

CHANGELOG.md Outdated

[Full Changelog](https://github.com/babylonchain/babylon-private/compare/euphrates-0.1.0-rc.1...euphrates-v0.2.0-rc.0)

## [euphrates-0.1.0-rc.1](https://github.com/babylonchain/babylon-private/tree/euphrates-0.1.0-rc.1) (2024-03-25)
Copy link
Collaborator

Choose a reason for hiding this comment

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

tbh I would delete all those sub points and in ## Unreleased section add Babylon Multi staking support
pointing to this pr. (probably under State breaking sub titlte`)

And in this pr description add links to most relevat pr's

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, addressed at a7e939d

Copy link
Contributor

@RafilxTenfen RafilxTenfen left a comment

Choose a reason for hiding this comment

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

LGTM after the merge of #424

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.

Great work! Let's not forget to merge #424

@SebastianElvis
Copy link
Member Author

Created #431 to track the task for tightening the cross-module dependencies. Cannot find the discussion anymore so put it here

Comment on lines 197 to 230
if: false
needs: [e2e-docker-build-babylon, e2e-docker-build-e2e-init-chain]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download babylon artifact
uses: actions/download-artifact@v4
with:
name: babylond-${{ github.sha }}
path: /tmp
- name: Download init-chain artifact
uses: actions/download-artifact@v4
with:
name: init-chain
path: /tmp
- name: Docker load babylond
run: |
docker load < /tmp/docker-babylond.tar.gz

- name: Docker load init chain
run: |
docker load < /tmp/docker-init-chain.tar.gz

- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Run e2e TestSoftwareUpgradeV1TestnetTestSuite
run: |
sudo make test-e2e-cache-upgrade-v1
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
uses: jwalton/gh-docker-logs@v2

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
sudo make test-e2e-cache-upgrade-v1
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
uses: jwalton/gh-docker-logs@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'ci' step
Uses Step
uses 'jwalton/gh-docker-logs' with ref 'v2', not a pinned commit hash
Copy link
Member

@gitferry gitferry left a comment

Choose a reason for hiding this comment

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

Thanks for addressing all the comments. No blocker from my side. Let's go!

@filippos47 filippos47 merged commit 10905e7 into main Jan 23, 2025
24 checks passed
@filippos47 filippos47 deleted the base/consumer-chain-support branch January 29, 2025 09:53
SebastianElvis added a commit to babylonlabs-io/babylon-sdk that referenced this pull request Feb 3, 2025
This PR bumps Babylon version and fixes a bug in the
`instantiate-babylon-contracts` cmd, found during debugging e2e tests

TODOs before merge

- [x] merge babylonlabs-io/babylon#402
- [x] change to babylon main branch snapshot version
filippos47 added a commit to babylonlabs-io/finality-provider that referenced this pull request Feb 3, 2025
Resolves #300 

This PR merges the latest `main` to the base branch.

- [x] merge babylonlabs-io/babylon#402
- [x] fix linters / unit tests
- [x] fix e2e

NOTE: CI pipelines using Docker registry do not work for some reason,
asking devops atm. All e2e tests pass locally.
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.

10 participants