babylonlabs-io / babylon-contract

CosmWasm smart contracts for Babylon integration
Other
10 stars 6 forks source link

Consider having functionality separate into multiple contracts #11

Closed maurolacy closed 2 months ago

maurolacy commented 3 months ago

@maurolacy cloned issue babylonchain/babylon-contract#131 on 2024-06-05:

Related to #130.

btc-staking is growing big, and is in fact containing functionality related to finality signatures, and the finality providers set.

Consider introducing a new finality contract to handle finality votes, power, and the voting round. The power that comes frombtc-staking can be read through a raw query for performance.

See the poe-contracts (https://www.github.com/confio/poe-contracts) design / structure for reference / ideas.

Also, the voting round and the finality validator set, though related to finality, could be perhaps better be in its own fpset contract. Again, poe-contracts provides a reference for this.

SebastianElvis commented 2 months ago

Subsumed by #52 and #53