Skip to content
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

fix(ics20): Refactor ICS20Authorization to use Allocations #1848

Merged
merged 7 commits into from
Oct 12, 2023

Conversation

Vvaradinov
Copy link
Contributor

@Vvaradinov Vvaradinov commented Oct 12, 2023

Description

This PR is the first of a series aiming to refactor the ICS20 Extension Approvals to be more aligned with IERC20 Approvals.

  • Removed Revoke specific Event, now it will just emit Approve with 0 Allocation
  • Move Allocation to common package

Closes #XXX

@Vvaradinov Vvaradinov marked this pull request as ready for review October 12, 2023 08:26
@Vvaradinov Vvaradinov requested a review from a team as a code owner October 12, 2023 08:26
@Vvaradinov Vvaradinov requested review from MalteHerrmann and 0xstepit and removed request for a team October 12, 2023 08:26
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Copy link
Contributor

@0xstepit 0xstepit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit and one question

precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/ics20/approve.go Outdated Show resolved Hide resolved
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/authorization/IICS20Authorization.sol Outdated Show resolved Hide resolved
precompiles/common/types.go Outdated Show resolved Hide resolved
precompiles/ics20/approve_test.go Outdated Show resolved Hide resolved
Vvaradinov and others added 3 commits October 12, 2023 12:58
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
@0xstepit 0xstepit merged commit c1c861e into main Oct 12, 2023
17 of 23 checks passed
@0xstepit 0xstepit deleted the Vvaradinov/refactor-ics20-authorization-and-events branch October 12, 2023 10:05
@Vvaradinov
Copy link
Contributor Author

https://github.com/Mergifyio backport release/v15.0.x

@mergify
Copy link
Contributor

mergify bot commented Oct 16, 2023

backport release/v15.0.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 16, 2023
* fix: add some of the refactors

* add CHANGELOG

* Update precompiles/authorization/IICS20Authorization.sol

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* Update precompiles/authorization/IICS20Authorization.sol

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* Update precompiles/common/types.go

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix: rename Allocation to ICS20Allocation

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit c1c861e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants