-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
* 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
Thanks @RafilxTenfen for the second wave of comments. Addressed them in #424 |
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.
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) |
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.
Nit: This need updating. Likely after merge.
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.
Good point, addressed at a7e939d
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.
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) |
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.
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
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.
Good idea, addressed at a7e939d
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.
LGTM after the merge of #424
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.
Great work! Let's not forget to merge #424
Created #431 to track the task for tightening the cross-module dependencies. Cannot find the discussion anymore so put it here |
Fix comments in #402
.github/workflows/ci.yml
Outdated
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
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
Uses Step
fix: merge main to base branch
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.
Thanks for addressing all the comments. No blocker from my side. Let's go!
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
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.
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