-
Notifications
You must be signed in to change notification settings - Fork 20
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(contracts): new registry (V1) #202
Conversation
279f038
to
1efcba7
Compare
Ready for a first round of review. In scope: Contracts:
Flows:
|
@coderabbitai review |
WalkthroughAhoy there! The changes in this pull request introduce a Continuous Integration (CI) workflow for the Bolt contracts project, enhancing the automation of testing smart contracts. It also includes updates to various files such as Changes
Possibly related issues
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 26
using BLS12381 for *; | ||
|
||
/// @dev The domain separation tag for the BLS signature | ||
function dst() internal pure returns (bytes memory) { |
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.
Note: this will probably be the commit-boost signing domain
fix: symbiotic network opt-in
Big milestone, LFG! |
Let's go!! congratss |
Commitment registry with external collateral
Closes #196
Closes #36
Closes #244
Closes #273
Registration procedure
BoltValidators
. There is aregisterValidatorUnsafe
method that skips all verifications (BLS signature check and SSZ validator existence check). This function will be useful to test and until Pectra will be live on public testnets. We can also start testing with the precompile on Pectra EF devnets for now.BoltManager
viaregisterSymbioticOperator()
Vaults
they want to operate onBoltManager
viaregisterSymbioticVault()
(currently no check on collateral asset used)The
BoltManager
contract allows read access into the current stake of any operator in the networkat any given time, for any asset:
It also allows to query if an operator is authorized to emit commitments for a specific validator:
The actual staking, unstaking, and slashing downstream logics are left to Symbiotic for now.
Diagrams
Missing & TODO
Validator
s to pause or change the currently authorizedOperator
Meta
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests
BoltManager
andBoltValidators
, validating key functionalities and interactions.