-
Notifications
You must be signed in to change notification settings - Fork 16
Refactor PufferProtocol to keep <24KB #119
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
86afa4b
Removed unused function
eladiosch 202c7f1
Created PufferLogic contract and adapted existing ones (WIP)
eladiosch 0b4a2b8
Adapted previous tests and improved signatures
eladiosch 37fff25
Changed ProtocolLogic structure. Moved more logic to ext contract (WIP)
eladiosch 27dea10
Fixed and simplify delegatecalls
eladiosch 50536f7
Refactor delegatecalls and small fixes
eladiosch 7b53076
Refactor PufferConstants to PufferProtocolBase and moved more logic t…
eladiosch ec3e5fe
forge fmt
eladiosch 9d2251f
Removed flow to deposit VT with Permit
eladiosch c104f39
Added tests to increase coverage
eladiosch 48c5b53
forge fmt
eladiosch 4e44801
Refactored interfaces and adapted tests (protocol WIP)
eladiosch eab8cfc
Changed approach of the delegatecall to logic contract
eladiosch 495ac9d
Removed selector constants
eladiosch bf0c713
Added some natspec to the fallback function
eladiosch a19d9a0
Moved logic from GuardianModule to Protocol to avoid re-deploying con…
eladiosch 5501856
forge fmt
eladiosch f3dafab
Added basic checks to withdrawValidationTime and added missing natspec
eladiosch 8d546b1
forge fmt
eladiosch 522f503
Update mainnet-contracts/src/PufferProtocol.sol
eladiosch e7fb64e
Update mainnet-contracts/src/PufferProtocol.sol
eladiosch 76a3233
Update mainnet-contracts/src/PufferProtocol.sol
eladiosch c90f5da
Update mainnet-contracts/src/PufferProtocol.sol
eladiosch e181e10
Update mainnet-contracts/src/PufferProtocolLogic.sol
eladiosch fad967d
Update mainnet-contracts/src/PufferProtocol.sol
eladiosch b982b2e
Using modifier (with require) to check deadlines
eladiosch 3c16eb3
Changed reverts to require and refactored to avoid stack too deep
eladiosch 3599a63
Added restricted for the Logic contract and improved natspec
eladiosch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This would require us to deploy a new GuardianModule, we could have this message logic in the protocol, and use
GUARDIAN_MODULE.validateGuardiansEOASignatures
That way, we wouldn't need to re-audit/redeploy
GuardianModule
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.
We need to re-deploy the GuardianModule anyways since the struct StoppedValidatorsInfo has changes. It was commented in the Pectra PR => #115 (comment)
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.
If we move that signature logic to the protocol, we might not need to, please check my big comment on the PR