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

Feat(M2-Mainnet): StakeRegistry pull updates per quorum #62

Merged
merged 21 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0a90b61
feat: initial implementation w/o timestamp
8sunyuan Nov 9, 2023
00e2e2d
feat: enforce stake updates for quorum in sigcheck
8sunyuan Nov 9, 2023
bb6c802
fix: update operator stake for just one quorum
8sunyuan Nov 9, 2023
f3049d9
fix: requested changes and optimizations
8sunyuan Nov 10, 2023
23b0698
refactor: move quorumUpdateTimestamp to reg coord
8sunyuan Nov 10, 2023
30ebab1
refactor: remove modifier in favor of helper method (#64)
wadealexc Nov 13, 2023
dc14fc4
fix: initializedQuorumBitmap fix
8sunyuan Nov 13, 2023
8b92066
fix: bitshifting error, needs to shift first before subtracting
8sunyuan Nov 16, 2023
634138e
fix: moved 1 weeks to a constant for now
8sunyuan Nov 16, 2023
2896b31
chore: require statement
8sunyuan Nov 16, 2023
db4957f
refactor: move shared logic to `_updateOperator`
8sunyuan Nov 20, 2023
4117e5f
refactor: added status check to `_updateOperator`
8sunyuan Nov 20, 2023
b8c042b
feat: Delegation.withdrawalDelayBlocks in sigcheck
8sunyuan Nov 21, 2023
4be4e1d
fix: use blocknumber instead of timestamp
8sunyuan Nov 21, 2023
ef74445
fix: unused constant and require error
8sunyuan Nov 21, 2023
e31b89c
feat: timestamp requirement is able to be toggled
8sunyuan Nov 30, 2023
39c943b
fix: interface imports
8sunyuan Dec 4, 2023
213a957
chore: renamed to staleStakesForbidden
8sunyuan Dec 6, 2023
e313d34
chore: typo with BlockNumber
8sunyuan Dec 6, 2023
037f184
fix: rebase remove deleted file
8sunyuan Dec 8, 2023
5dc29f6
fix: prevOperatorAddress not being updated
8sunyuan Dec 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: require statement
  • Loading branch information
8sunyuan committed Dec 8, 2023
commit 2896b31d9e4f2884e0ed9acd9281a2ec478c3c38
2 changes: 1 addition & 1 deletion src/BLSSignatureChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
for (uint i = 0; i < quorumNumbers.length; i++) {
require(
registryCoordinator.quorumUpdateTimestamp(uint8(quorumNumbers[i])) + QUORUM_STAKES_UPDATE_WINDOW <= block.timestamp,
"BLSSignatureChecker.checkSignatures: StakeRegistry updates must be within a week"
"BLSSignatureChecker.checkSignatures: StakeRegistry updates must be within QUORUM_STAKES_UPDATE_WINDOW"
);
require(
bytes24(nonSignerStakesAndSignature.quorumApks[i].hashG1Point()) ==
Expand Down