Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Log contract events #45

Open
elie222 opened this issue Jan 4, 2018 · 6 comments
Open

Log contract events #45

elie222 opened this issue Jan 4, 2018 · 6 comments
Labels
enhancement priority2 ⚠️ requires-ganache-logging Add to issues that would require more sophisticated logging infrastructure in Ganache to implement.
Milestone

Comments

@elie222
Copy link

elie222 commented Jan 4, 2018

Is it possible to see events in Ganache client logs?

@benjamincburns
Copy link
Contributor

Not at the moment, but I think this is an excellent idea. We'll also be adding events to the transactions pages in the ganache-ui.

@benjamincburns benjamincburns changed the title Is it possible to see events in Ganache client logs? Log contract events Jan 16, 2018
@mikeseese mikeseese self-assigned this Aug 13, 2018
@mikeseese mikeseese removed their assignment Aug 13, 2018
@mikeseese
Copy link
Contributor

Ganache UI 2.0 adds events (even decoded ones!). You can checkout the beta here!

@klederson
Copy link

Can I get access to all events via API so I can integrate my code locally?

@davidmurdoch
Copy link
Member

You can do it programatically via web3's allEvents method: https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#events

@thecircleoflifefree
Copy link

thecircleoflifefree commented Feb 28, 2020

Do we know on the roadmap starting what version of truffle will ganache 2.0 be the standard?

@davidmurdoch davidmurdoch added this to the 7.1.0 milestone Feb 3, 2021
@davidmurdoch
Copy link
Member

Reviving this issue as we think this is a fantastic idea, albeit rather difficult to implement on ganache's side.

To recap some internal conversations:

  • this idea seems like a great idea from truffle develop, as truffle has all of the tools necessary to decode the events
  • we could come up with ways of showing this in ganache if ganache knows about the source code (and other information), though circular deps become an issue between ganache and truffle.
  • truffle events command that can connect to any blockchain and watch the events as they happen.
  • more ways...

@davidmurdoch davidmurdoch added priority2 ⚠️ requires-ganache-logging Add to issues that would require more sophisticated logging infrastructure in Ganache to implement. and removed priority6 💭 labels Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement priority2 ⚠️ requires-ganache-logging Add to issues that would require more sophisticated logging infrastructure in Ganache to implement.
Projects
Status: Backlog
Development

No branches or pull requests

6 participants