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

Move event emissions to functions #648

Closed
3 tasks
colin-axner opened this issue Dec 20, 2021 · 7 comments · Fixed by #783
Closed
3 tasks

Move event emissions to functions #648

colin-axner opened this issue Dec 20, 2021 · 7 comments · Fixed by #783
Assignees
Labels
core good first issue Good for newcomers type: code hygiene Clean up code but without changing functionality or interfaces

Comments

@colin-axner
Copy link
Contributor

Summary

For all core IBC event emissions, we should put them in functions within their respective keepers, like so

It increases readability of the critical code, provides self documentation, and allows us to ensure consistency between event emission


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@colin-axner colin-axner added good first issue Good for newcomers core type: code hygiene Clean up code but without changing functionality or interfaces labels Dec 20, 2021
@nir1218
Copy link
Contributor

nir1218 commented Jan 15, 2022

@colin-axner @crodriguezvega Hey, I would like to work on this issue, kindly assign it to me.

@crodriguezvega
Copy link
Contributor

crodriguezvega commented Jan 16, 2022

hey @nir1218, glad to see that you want to work on another one. Thanks for dedicating your time to it!

@colin-axner
Copy link
Contributor Author

@nir1218 let us know if you have any questions

@nir1218
Copy link
Contributor

nir1218 commented Jan 17, 2022

@crodriguezvega @colin-axner I noticed that in msg_server.go in the upgrade and update client methods there is an emit event of a message type , and then in the client keeper there is an emit of the operation type itself. So my question is, should I consolidate both emissions in one method and invoke it from the client keeper as done in events.go under channel module?

@crodriguezvega
Copy link
Contributor

Yes, I think that makes sense. So, for example, for the case of update client to have a method that emits both this event and this event, right?

Do you agree, @colin-axner?

@colin-axner
Copy link
Contributor Author

Yes that makes sense to me

@nir1218
Copy link
Contributor

nir1218 commented Feb 7, 2022

@crodriguezvega @colin-axner Will you be closing the issue and the PR? Is there anything else I can do on this?

faddat pushed a commit to notional-labs/ibc-go that referenced this issue Feb 23, 2022
* make fmt

* changelog update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core good first issue Good for newcomers type: code hygiene Clean up code but without changing functionality or interfaces
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants