-
Notifications
You must be signed in to change notification settings - Fork 81
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
Permissioned L1 stake table #2325
Conversation
Missing conversion from G2 Affine to BLSPubKey.
- Update bindings. - Add tests for event emission.
- The stake table isn't useful without stakers I think it makes sense to require it to be provided on deployment.
We will add some more ergonomic code for conversion to jellyfish at some point. This code can be used as a stop gap until then.
Co-authored-by: Alysia Tech <[email protected]>
breaks if we use: `serde.workspace = true`
* align comment with implementation * added more clarity * comment format * clearer comment * update comment to make it clear that there may be outdated elements in the state history
* add stake table tests * remove stake types * verify token allowance, balance and reprioritize verification order on registration * set the fixed stake amount, added related tests, updated data types * add more verification checks to the withdraw function * updated errror types * added TODO statements in comments to be explicit about outdated functions that need to be updated to the new spec
* change lc proxy addr * fix deploy-sequencer-contracts in docker compose * test for stake table from toml file * initial stake table toml file * exclude toml file in typos * remove custom deser
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.
Approving so that work can progress but a question around event logs.
So theres's an event when the stakers list is updated but not an event when one is inserted or removed.
Is that because inserts only happen at the beginning when the existing list of stakers are added to the contract?
Though I presume a removal can only happen in the future.
Assuming there's a service that depends entirely on this contract to know the full active set of stakers, shouldn't there be emit logs for those methods too?
EDITED
only the update is public so nevermind
|
||
// public methods | ||
|
||
function update(NodeInfo[] memory stakersToRemove, NodeInfo[] memory newStakers) |
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.
@alysiahuggins only the update
method is public.
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.
ah missed that, thanks
Some info: https://www.notion.so/espressosys/Permissioned-stake-table-contract-for-Dec-2024-release-1462431b68e980a0a4abcd6bb65d7e43?pvs=4
TODO
NodeInfo
.Follow up work