-
Notifications
You must be signed in to change notification settings - Fork 905
fix(ics20): Extract grant checking and updating functions for reuse #1850
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1850 +/- ##
==========================================
+ Coverage 70.38% 70.58% +0.20%
==========================================
Files 314 314
Lines 23422 23369 -53
==========================================
+ Hits 16486 16496 +10
+ Misses 6121 6058 -63
Partials 815 815
|
# Conflicts: # CHANGELOG.md # precompiles/authorization/IICS20Authorization.sol # precompiles/authorization/events.go # precompiles/common/Types.sol # precompiles/common/types.go # precompiles/ics20/abi.json # precompiles/ics20/approve_common.go # precompiles/ics20/approve_test.go # precompiles/ics20/events.go # precompiles/ics20/events_test.go # precompiles/ics20/integration_test.go # precompiles/ics20/query.go # precompiles/ics20/query_test.go # precompiles/ics20/tx.go # precompiles/ics20/types.go # precompiles/ics20/utils_test.go
…s' into Vvaradinov/common-grant-functions
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.
LGTM! Great work @Vvaradinov!!
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.
LGTM! Left some nits and a Q though 🙏
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
https://github.com/Mergifyio backport release/v15.0.x |
✅ Backports have been created
|
…1850) * fix: add some of the refactors * add CHANGELOG * fix: common approval logic and test refactor to use the new event emitting * fix: extract check and update grant functions for case when smart contracts are calling * CHANGELOG * CHANGELOG * fix: added back changes needed * fix: remove unused event * CHANGELOG * format and lint * Apply suggestions from code review Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> --------- Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com> Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> (cherry picked from commit 6d2d0f1) # Conflicts: # CHANGELOG.md # precompiles/ics20/events.go # precompiles/ics20/tx.go # precompiles/ics20/types.go
…backport #1850) (#1872) * fix(ics20): Extract grant checking and updating functions for reuse (#1850) * fix: add some of the refactors * add CHANGELOG * fix: common approval logic and test refactor to use the new event emitting * fix: extract check and update grant functions for case when smart contracts are calling * CHANGELOG * CHANGELOG * fix: added back changes needed * fix: remove unused event * CHANGELOG * format and lint * Apply suggestions from code review Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> --------- Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com> Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> (cherry picked from commit 6d2d0f1) # Conflicts: # CHANGELOG.md # precompiles/ics20/events.go # precompiles/ics20/tx.go # precompiles/ics20/types.go * fix: remove merge marks * fix: correct type for Transfer Authz --------- Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Description
This is the 3rd PR extracting the Grant checking and updating logic so it can be easily re-used in future Outposts or extension utilizing ICS20 Transfers.
Closes #XXX