-
Notifications
You must be signed in to change notification settings - Fork 6
feat: permit2 for token flows #63
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
+986
−130
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ff795e8
feat: permit2 for token flows
anna-carroll 1de94f5
add permit2 as submodule, organize files to folders (#65)
anna-carroll a6f54e4
break permit2 functionality into discrete contracts
anna-carroll e88165b
fix: update witness encoding for EIP-712 compliance
anna-carroll 3ea69d2
refactor: generate witness as public field
anna-carroll c8913cc
minor refactor
anna-carroll 46e9545
snapshot
anna-carroll 965266d
function visibility & ordering
anna-carroll 85788f8
test: permit2 flows
anna-carroll 7d07528
snapshot
anna-carroll 862fef1
remove TODOs
anna-carroll 127cd71
split batch and single helpers
anna-carroll d144803
split up passage/orders tests
anna-carroll d7e21bb
unused import
anna-carroll 94f94af
snapshot
anna-carroll de85ac2
add expectCall
anna-carroll 5c723e3
snapshot
anna-carroll beca65a
feat: redo permit tests as mainnet fork
anna-carroll 9ce2d34
Merge pull request #67 from init4tech/anna/test-permit2
prestwich 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
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.
did we make a decision on specifying a min amount swept here?
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.
it isn't strictly necessary because
sweep
should be submitted in a bundle with the correspondinginitiate
calls; if another Filler gets their bundle submitted first, the second bundle'sinitiate
calls will be rejected (because of the tx nonce) so the bundle should be rejected for that reason.