-
Notifications
You must be signed in to change notification settings - Fork 618
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
test(x/gamm): add liquidity event tests #2141
Conversation
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!
Nice catch on removing the existing emit event!
I do have concern over not being able to intuitively track what events are happening from the msg server layer, rather have to follow inside methods to track what events are happening, but apart from that small concern I have LGTM!
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
…smosis into roman/gamm-add-liq-events
I think that's a good point. Let me refactor this at the very end, once I complete all the remaining gamm events. I will add this is an acceptance criteria to the #1942 |
I'm merging this since need to unblock further work and the change is not risky |
* test(gamm): add liquidity events * Apply suggestions from code review * Update x/gamm/keeper/msg_server_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> (cherry picked from commit 4970f16) # Conflicts: # x/gamm/keeper/pool_service_test.go
* test(gamm): add liquidity events * Apply suggestions from code review * Update x/gamm/keeper/msg_server_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
* test(gamm): add liquidity events * Apply suggestions from code review * Update x/gamm/keeper/msg_server_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
* test(gamm): add liquidity events * Apply suggestions from code review * Update x/gamm/keeper/msg_server_test.go Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Part of: #1942
What is the purpose of the change
Tests add liquidity events that should be emitted when a pool is joined.
I noticed that they were emitted twice:
I removed 1. while keeping 2.
Testing and Verifying
This change added tests
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no