-
Notifications
You must be signed in to change notification settings - Fork 5.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
feat: token approvals from nested transactions in simulation details #30511
Open
matthewwalsh0
wants to merge
19
commits into
feat/atomic-batch-transactions
Choose a base branch
from
feat/batch-approve-simulation
base: feat/atomic-batch-transactions
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e1ab90d
Add static rows
matthewwalsh0 0721072
Add batch simulation storybook
matthewwalsh0 304d5aa
Show spending cap cards
matthewwalsh0 004db18
Add unit test
matthewwalsh0 d70d0a7
Add batch simulation unit tests
matthewwalsh0 25c4ba2
Add batch simulation unit test
matthewwalsh0 1a2a160
Use existing balance changes hook
matthewwalsh0 186ceb0
Add unit tests for parseApprovalTransactionData function
matthewwalsh0 1938849
Add unit tests for useBatchApproveBalanceChanges
matthewwalsh0 3543180
Support unlimited and approve all
matthewwalsh0 febbc38
Remove unnecessary changes
matthewwalsh0 6304870
Add unit tests for AmountPill
matthewwalsh0 2e5b861
Add unlimited and all unit tests
matthewwalsh0 78980a9
Support edit of ERC-20 approvals
matthewwalsh0 53e4625
Add edit unit tests
matthewwalsh0 746490d
Add translation
matthewwalsh0 30058aa
Add SimulationDetails unit test
matthewwalsh0 84bad48
Add unit tests for isSpendingCapUnlimited
matthewwalsh0 919d4c8
Fix unit test
matthewwalsh0 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
Perhaps we can compare token method names by leveraging the
TransactionType
s like we do indetermineTransactionType
, instead of hardcoding the strings?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 technically could, but it's coincidence that the types match the names as some of the transaction types for example don't align with any contract methods.
Though I'm not opposed to using a central enum, assuming one exists or we add one.