-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Access lock #404
Merged
Merged
Access lock #404
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1cc37ed
rebase
snreynolds 2a2321e
add access lock flag
snreynolds 65069b3
create AccessLock tests
snreynolds 589026f
add beforeModifyPosition tests for mint/swap/modify/take/donate
snreynolds 70a869e
add beforeSwap tests
snreynolds e147a7c
add beforeDonate tests
snreynolds 2396461
fix fuzz boundaries
snreynolds 8b6b850
use transient storage
snreynolds 400ce17
fix ci?
snreynolds 7bda2b1
fix: comments
snreynolds fbda6c4
add revert test
snreynolds 11c9321
more edge case tests
snreynolds d6864a4
add failing test
snreynolds d7829b7
fix: hooks can only call functions in the middle of a lock
snreynolds 9d8f00b
fix comments
snreynolds 2a7ccf9
fix: currentHook must be updated only on the first call, and cleared
snreynolds 2e88e5f
merge main
snreynolds 969fb9d
use IHooks, remove 1155 ref
snreynolds a958a37
remove special no access lock hook
snreynolds f70443a
add nested lock test
snreynolds 88d9ce1
unset hook for noOp case
snreynolds 448b557
add initialize
snreynolds fa432c2
add vanilla initialize tests
snreynolds fb803c3
fmt error
snreynolds f455e64
add natspec and flatten onlyByLocker check
snreynolds 528ce4e
snaps
snreynolds 83afc1e
move onlyByLocker, add comments
snreynolds b9645ef
update comments, use custom error, add test cases
snreynolds 7fc2658
add burn test
snreynolds e571806
remove logs
snreynolds 680faf7
add settle test
snreynolds 53cdf3e
init test
snreynolds 7755acd
add back noop test
snreynolds 852ed5b
remove else
snreynolds 0aee197
Merge branch 'main' into access-lock
snreynolds 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
add vanilla initialize tests
- Loading branch information
commit fa432c22d46118565503ab6bceefec60ba052198
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
77307 | ||
77664 |
This file contains 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 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 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 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.
what about some edge casier tests like:
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.
I'll add a hook accessing a lock and applying deltas when there is no outside locker