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

[DNM] merge base to main #387

Closed
wants to merge 84 commits into from
Closed

Conversation

SebastianElvis
Copy link
Member

No description provided.

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
gusin13 and others added 28 commits August 14, 2024 16:04
chore: merge dev to the base branch
Adds IBC slashing message to `protobuf` defs
Closes #64.

TODOs:
- [x] #65
- [x] #74
- [x] babylonlabs-io/finality-provider#56
- [x] #81

We still need to update the docs, add CLI cmd, and e2e tests but can be
done in separate PRs
Adapt to new multi-contract setup. Add rewards generation e2e test
Resolves babylonlabs-io/pm#44

This PR implements the permissioned integration and generic consumer
registry, including

- [x] generic consumer registry compatible with Cosmos/ETH L2 consumers
- [x] parameter for governance gating consumer addition
- [x] ensuring IBC channel creation only when the IBC light client is in
consumer registry
- [x] removing the Cosmos consumer registration upon IBC handshake in
Babylon
- [x] removing the Cosmos consumer registration upon IBC handshake in
Babylon contract
- [x] fuzz tests for Cosmos integration
- [x] e2e tests for Cosmos integration

ADR: babylonlabs-io/pm#121
Accompanying PR in the contract side:
babylonlabs-io/babylon-contract#87


There are two TODOs that will be addressed in subsequent PRs:

- msg for removing registered consumer
- fuzz/e2e test for ETH L2 integrations

---------

Co-authored-by: Mauro Lacy <[email protected]>
Part of babylonlabs-io/babylon-sdk#64

This PR removes all e2e tests related to BTC staking integration. These
tests will then be put in babylon-sdk repository
([PR](babylonlabs-io/babylon-sdk#68))
## Summary

This PR removes unused dependencies in `.proto` files, addressing the
protobuf generation issue outlined in
[babylon-contract/issues/101](babylonlabs-io/babylon-contract#101).


## Test Plan

```
make proto-lint
```
@RafilxTenfen
Copy link
Contributor

old PR, probably can be closed or reopen if is needed later

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.

7 participants