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

impv(ics20): Common approval methods and tests refactor #1849

Merged
merged 11 commits into from
Oct 12, 2023

Conversation

Vvaradinov
Copy link
Contributor

Description

This is the 2nd PR in the series which extracts the common Approval methods into a approve_common.go. It also fixes the failing unit and integration tests to include the correct events and names.


Closes #XXX

@Vvaradinov Vvaradinov requested a review from a team as a code owner October 12, 2023 09:04
@Vvaradinov Vvaradinov requested review from facs95 and GAtom22 and removed request for a team October 12, 2023 09:04
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #1849 (22af59f) into main (a456910) will decrease coverage by 0.03%.
Report is 1 commits behind head on main.
The diff coverage is 74.89%.

❗ Current head 22af59f differs from pull request most recent head 744a405. Consider uploading reports for the commit 744a405 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1849      +/-   ##
==========================================
- Coverage   70.42%   70.39%   -0.03%     
==========================================
  Files         313      314       +1     
  Lines       23310    23391      +81     
==========================================
+ Hits        16416    16467      +51     
- Misses       6072     6111      +39     
+ Partials      822      813       -9     
Files Coverage Δ
precompiles/common/types.go 61.76% <ø> (ø)
precompiles/ics20/approve.go 100.00% <100.00%> (+25.30%) ⬆️
precompiles/ics20/query.go 85.91% <100.00%> (ø)
precompiles/ics20/types.go 67.48% <100.00%> (+3.16%) ⬆️
precompiles/ics20/tx.go 82.35% <66.66%> (ø)
precompiles/ics20/events.go 36.66% <0.00%> (-35.43%) ⬇️
precompiles/authorization/events.go 0.00% <0.00%> (ø)
precompiles/ics20/approve_common.go 79.72% <79.72%> (ø)

Copy link
Contributor

@MalteHerrmann MalteHerrmann left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks @Vvaradinov 🚀 left some nits

CHANGELOG.md Outdated Show resolved Hide resolved
precompiles/authorization/events.go Show resolved Hide resolved
precompiles/ics20/approve_common.go Show resolved Hide resolved
precompiles/ics20/approve_common.go Show resolved Hide resolved
precompiles/ics20/types.go Outdated Show resolved Hide resolved
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@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.

Great job @Vvaradinov!

precompiles/authorization/events.go Outdated Show resolved Hide resolved
precompiles/ics20/approve_common.go Show resolved Hide resolved
@Vvaradinov Vvaradinov enabled auto-merge (squash) October 12, 2023 15:38
@Vvaradinov Vvaradinov merged commit ee3e7da into main Oct 12, 2023
24 of 25 checks passed
@Vvaradinov Vvaradinov deleted the Vvaradinov/common-ics20-events branch October 12, 2023 15:49
@Vvaradinov
Copy link
Contributor Author

Vvaradinov commented Oct 16, 2023

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

* fix: common approval logic and test refactor to use the new event emitting

* CHANGELOG

* fix: rename variables and regenerate ABI after merge

* Apply suggestions from code review

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

* fix: replaced name from origin to granter and minor fixes

* fix: revert changes meant for another branch

* fix: revert errors

* fix: space

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit ee3e7da)

# Conflicts:
#	CHANGELOG.md
#	precompiles/ics20/approve.go
Vvaradinov added a commit that referenced this pull request Oct 16, 2023
…) (#1873)

* impv(ics20): Common approval methods and tests refactor (#1849)

* fix: add some of the refactors

* add CHANGELOG

* fix: common approval logic and test refactor to use the new event emitting

* CHANGELOG

* fix: rename variables and regenerate ABI after merge

* Apply suggestions from code review

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

* fix: replaced name from origin to granter and minor fixes

* fix: revert changes meant for another branch

* fix: revert errors

* fix: space

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit ee3e7da)

# Conflicts:
#	CHANGELOG.md
#	precompiles/ics20/approve.go

* fix: merge conflicts

* CHANGELOG

* CHANGELOG

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
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.

3 participants